SoftMaskForUGUI icon indicating copy to clipboard operation
SoftMaskForUGUI copied to clipboard

ArgumentNullException on first Play

Open CDTR-MattConroy opened this issue 9 months ago • 1 comments

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:

  1. Close Unity
  2. Open Unity
  3. Enter Play mode
  4. 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&)

CDTR-MattConroy avatar Mar 20 '25 08:03 CDTR-MattConroy

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.

repos

mob-sakai avatar Mar 20 '25 08:03 mob-sakai