11-19-2023 08:33 AM
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.
Solved! Go to Solution.
01-16-2024 05:55 AM
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
11-22-2023 05:50 AM
The way I got around this is by saving a prefab variant to my resources folder
11-27-2023 01:01 AM
@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?
12-18-2023 05:22 AM
I'm facing the same issue is there any work around ?
01-16-2024 05:55 AM
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
01-16-2024 06:45 AM
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).
04-25-2024 10:21 PM
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...
06-09-2024 06:59 AM - edited 06-09-2024 07:06 AM
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.
09-13-2024 06:06 AM
10-04-2024 06:39 AM
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.