cancel
Showing results for 
Search instead for 
Did you mean: 

Immutable folders in Interaction Packages

mikameel
Explorer

I have a lot of issues with immutable folders in the new Meta SDK packages.
I tried different things to but the error keeps coming back in different projects.

I first installed Meta Core SDK, I installed 4 building blocks. XR rig, passthrough, controller and hands building block. After this I imported the Meta interaction SDK and get this error:

Saving Prefab to immutable folder is not allowed: Packages/com.meta.xr.sdk.interaction.ovr/Editor/Blocks/Interactors/Prefabs/[BB] Hand Ray.prefab
UnityEditor.EditorApplication:Internal_CallGlobalEventHandler ()

 

 

This is driving me crazy, I tried different ways, even deleting the packagecache but it keeps coming back.

1 ACCEPTED SOLUTION

Accepted Solutions

mikameel
Explorer

OKAY so I found the solution after a month.

The error exist because of Meta, there is something wrong because this error pops up after importing the Meta XR Interaction SDK OVR integration.

This is the fix:
If you use Meta XR Interaction SDK OVR Integration you should select the folder in your project from editor. Now go find the folder in explorer (in windows)> now copy this folder and save it in your project folder "packages". Remove the <@version.something> and now go save your project and the immutale error is gone!!!


Here you can find the official unity instructions:

https://docs.unity3d.com/Manual/upm-embed.html
@gokulsiva 

View solution in original post

9 REPLIES 9

nickrocky213
Explorer

The way I got around this is by saving a prefab variant to my resources folder

mikameel
Explorer

@nickrocky213 I tried this in several ways, but I cannot just copy the item.

Could you explain how you copy the variant?
Do you place it in your scene first, and copy the complete rig as variant, or do you copy the specific item ( let's take "HandRay interactor") from packages and save it to your assets folder? 

or do you access your project from files or explorer and copy from the cache folder?

gokulsiva
Honored Guest

I'm facing the same issue is there any work around ?

mikameel
Explorer

OKAY so I found the solution after a month.

The error exist because of Meta, there is something wrong because this error pops up after importing the Meta XR Interaction SDK OVR integration.

This is the fix:
If you use Meta XR Interaction SDK OVR Integration you should select the folder in your project from editor. Now go find the folder in explorer (in windows)> now copy this folder and save it in your project folder "packages". Remove the <@version.something> and now go save your project and the immutale error is gone!!!


Here you can find the official unity instructions:

https://docs.unity3d.com/Manual/upm-embed.html
@gokulsiva 

florian.buchholz.1988
Expert Protege

So, as far as I understand it, you're trying to change a prefab of a package, that of course shouldn't be changed as the original prefab. For that, you create variants in Unity. https://docs.unity3d.com/Manual/PrefabVariants.html

And saving the whole folder in unity somewhere else is disconnecting the official package from the package manager and can not be updated anymore. I would not advise that if you ever want to update your project to a newer version, but that's your choice.

It is not the official way you should be doing that. Official packages are not changeable for a reason (also because of copyright issues, which you are probably breaking by copying the official version).

ACIDmilk
Explorer

I just got the latest meta all-in-one sdk package and this still happens.

Any idea if Meta can have this fixed?

Seems crazy that after you install the Package the first thing u encounter is a seemingly unsolvable problem and u have to solve it with this hacky way...

k182484
Honored Guest

In my case, this was caused by an editor extension that sorts the hierarchy automatically.

The sorting function is called on EditorApplication.hierarchyChanged event but does not cause any errors while editing a scene. But the error is thrown while saving a scene. In addition, writing Debug.Log shows the EditorApplication.hierarchyChanged event is also called while saving a scene.
So the issue seems to be caused by simultaneous saving and editing, plus the specifications of the related package.
I have seen similar issues occur with packages other than Meta XR SDK.

My solution was adding a conditional branch and related codes on the extension to avoid sorting prefab.

To find a fundamental solution, I recommend inspecting the specifications of all automation processes that run on your editor.

LucaMefisto
Explorer
Hey mikameel,
 
I came across the "[BB] Hand Ray" issue recently too when using Unity 2022.3.0.
I believe the faulty piece is the Unity component `SortingGroup` within the `[BB] Hand Ray` prefab. I inspected the Unity changelong and it looks like this bug could cause it: https://issuetracker.unity3d.com/issues/gameobjects-with-sortinggroup-is-dirty-after-loading
 
I updated my project to the latest Unity 2022.3.46f and could successfully build.
Please let me know which version were you using and if this fixes your problem!

RiverExplorer
Protege

I looked at the files and directories that it is complaining about when I see this issue. In all cases, 'something', makes folders that are not writable to the user running the editor. I deleted my Library directory and let Unity re-create it. It keeps re-creating non writable files for folders. I do not know if it is Unity or the package owner. In UNIX/Linux terms, the folders are readable and writable to group, but not to owner.

Perhaps windows guru's will know what commands might fix that.