SoftMaskForUGUI
SoftMaskForUGUI copied to clipboard
ArgumentNullException on first Play
NOTE: Your issue may already be reported! Please search on the issue tracker before creating one.
Describe the bug ArgumentNullException is intermittently thrown whene existing Play mode the first time after re-opening the Editor.
To Reproduce Steps to reproduce the behavior:
- Close Unity
- Open Unity
- Enter Play mode
- See error
Expected behavior No exception is thrown
Environment (please complete the following information):
- Version [3.2.4]
- Platform: [Editor(Windows)]
- Unity version: [2023.2.20f1]
Additional context
ArgumentNullException: Value cannot be null.
Parameter name: objectToOverwrite
UnityEditor.EditorJsonUtility.FromJsonOverwrite (System.String json, System.Object objectToOverwrite) (at <8f5ff83e453e49179847370b820a0398>:0)
Coffee.UISoftMaskInternal.PreloadedProjectSettings`1[T].OnPlayModeStateChanged (UnityEditor.PlayModeStateChange state) (at ./Library/PackageCache/[email protected]/Runtime/Internal/ProjectSettings/PreloadedProjectSettings.cs:169)
UnityEditor.EditorApplication.Internal_PlayModeStateChanged (UnityEditor.PlayModeStateChange state) (at <8f5ff83e453e49179847370b820a0398>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
Thank you for your reporting!
Could you please attach a minimal project (included Assets, Packages and ProjectSettings directories) that reproduces the issue?
Of course, you don't need to include any secret assets from your project. Feel free to use free assets instead.
