StressLevelZero / MarrowSDK-Legacy

MIT License
288 stars 39 forks source link

ArgumentException when selecting Initialize Overlay in AW Spawner #49

Closed Viewless123 closed 1 year ago

Viewless123 commented 1 year ago

ArgumentException: Saving Prefab to immutable folder is not allowed: 'Packages/com.stresslevelzero.marrow.sdk/sdk\Editor/Assets/Prefabs/Spawnable Placer (Template).prefab'

See GIF below: 2022-10-02_14-18-52

Full error log from Unity:

ArgumentException: Saving Prefab to immutable folder is not allowed: 'Packages/com.stresslevelzero.marrow.sdk/sdk\Editor/Assets/Prefabs/Spawnable Placer (Template).prefab'
UnityEditor.PrefabUtility.ValidatePath (UnityEngine.GameObject instanceRoot, System.String path) (at <1f0be198f5164d2489de92f22c998266>:0)
UnityEditor.PrefabUtility.SaveAsPrefabAssetArgumentCheck (UnityEngine.GameObject instanceRoot, System.String path) (at <1f0be198f5164d2489de92f22c998266>:0)
UnityEditor.PrefabUtility.SaveAsPrefabAsset (UnityEngine.GameObject instanceRoot, System.String assetPath, System.Boolean& success) (at <1f0be198f5164d2489de92f22c998266>:0)
SLZ.MarrowEditor.AWSpawnerOverlayToolbar.CreateSpawnablePrefab (UnityEngine.GameObject createPrefab) (at Library/PackageCache/com.stresslevelzero.marrow.sdk@cf57525691/SLZ.Marrow.Editor/SLZ.MarrowEditor/AWSpawnerOverlayToolbar.cs:233)
SLZ.MarrowEditor.AWSpawnerOverlayToolbar.InitializeOverlay () (at Library/PackageCache/com.stresslevelzero.marrow.sdk@cf57525691/SLZ.Marrow.Editor/SLZ.MarrowEditor/AWSpawnerOverlayToolbar.cs:200)
UnityEngine.UIElements.Clickable.Invoke (UnityEngine.UIElements.EventBase evt) (at <f2e1435fec084ff693c649189d4dffd4>:0)
UnityEngine.UIElements.Clickable.ProcessUpEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.Vector2 localPosition, System.Int32 pointerId) (at <f2e1435fec084ff693c649189d4dffd4>:0)
UnityEngine.UIElements.Clickable.OnMouseUp (UnityEngine.UIElements.MouseUpEvent evt) (at <f2e1435fec084ff693c649189d4dffd4>:0)
UnityEngine.UIElements.EventCallbackFunctor`1[TEventType].Invoke (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.PropagationPhase propagationPhase) (at <f2e1435fec084ff693c649189d4dffd4>:0)
UnityEngine.UIElements.EventCallbackRegistry.InvokeCallbacks (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.PropagationPhase propagationPhase) (at <f2e1435fec084ff693c649189d4dffd4>:0)
UnityEngine.UIElements.CallbackEventHandler.HandleEvent (UnityEngine.UIElements.EventBase evt) (at <f2e1435fec084ff693c649189d4dffd4>:0)
UnityEngine.UIElements.TextElement.HandleEvent (UnityEngine.UIElements.EventBase evt) (at <f2e1435fec084ff693c649189d4dffd4>:0)
UnityEngine.UIElements.CallbackEventHandler.HandleEventAtTargetPhase (UnityEngine.UIElements.EventBase evt) (at <f2e1435fec084ff693c649189d4dffd4>:0)
UnityEngine.UIElements.MouseCaptureDispatchingStrategy.DispatchEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <f2e1435fec084ff693c649189d4dffd4>:0)
UnityEngine.UIElements.EventDispatcher.ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, System.Boolean imguiEventIsInitiallyUsed) (at <f2e1435fec084ff693c649189d4dffd4>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <f2e1435fec084ff693c649189d4dffd4>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEventQueue () (at <f2e1435fec084ff693c649189d4dffd4>:0)
UnityEngine.UIElements.EventDispatcher.OpenGate () (at <f2e1435fec084ff693c649189d4dffd4>:0)
UnityEngine.UIElements.EventDispatcherGate.Dispose () (at <f2e1435fec084ff693c649189d4dffd4>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <f2e1435fec084ff693c649189d4dffd4>:0)
UnityEngine.UIElements.EventDispatcher.Dispatch (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, UnityEngine.UIElements.DispatchMode dispatchMode) (at <f2e1435fec084ff693c649189d4dffd4>:0)
UnityEngine.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.UIElements.EventBase e, UnityEngine.UIElements.DispatchMode dispatchMode) (at <f2e1435fec084ff693c649189d4dffd4>:0)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <f2e1435fec084ff693c649189d4dffd4>:0)
UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at <f2e1435fec084ff693c649189d4dffd4>:0)
UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <f2e1435fec084ff693c649189d4dffd4>:0)
UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at <f2e1435fec084ff693c649189d4dffd4>:0)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at <89d2c0fe37e0454991daf2807b7dcb63>:0)
Greased-Scotsman commented 1 year ago

Update your MarrowSDK package, you're behind a version in which this was fixed. If the MarrowSDK package does not have an Update button, you can use the Add package from git URL and point the Package Manager to:

https://github.com/StressLevelZero/MarrowSDK.git

and this will perform an update of the SDK.