Spine Unity package has SpineBuildProcessor which has custom asset postprocessor and preprocessor.
This SpineBuildProcessor tries to modify prefabs with SkeletonRenderer component on them before and after build.
We use spine in our prefab in our custom unity package and SpineBuildProcessor tries to modify it before and after build but unity doesnt allow modifying assets that are in custom packages!
This results in 2 errors for each prefab - before and then after every build. Can i disable this preprocessors? Or make it filter out objects in custom packages?
Stack trace:
Saving Prefab to immutable folder is not allowed: Packages/mycompany.mypackage/Prefabs/MyPrefab.prefab
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Spine.Unity.Editor.SpineBuildProcessor:PreprocessSpinePrefabMeshes () (at Library/PackageCache/mycompany.mypackage@044983d071/Plugins/Spine/Editor/spine-unity/Editor/Utility/SpineBuildProcessor.cs:89)
Spine.Unity.Editor.SpineBuildProcessor:PreprocessBuild () (at Library/PackageCache/mycompany.mypackage@044983d071/Plugins/Spine/Editor/spine-unity/Editor/Utility/SpineBuildProcessor.cs:59)
Spine.Unity.Editor.SpineBuildPreprocessor:UnityEditor.Build.IPreprocessBuildWithReport.OnPreprocessBuild (UnityEditor.Build.Reporting.BuildReport) (at Library/PackageCache/mycompany.mypackage@044983d071/Plugins/Spine/Editor/spine-unity/Editor/Utility/SpineBuildProcessor.cs:166)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)