NavMeshPlus icon indicating copy to clipboard operation
NavMeshPlus copied to clipboard

`SerializedObjectNotCreatableException: Object at index 0 is null` on every scene initialization in `CollectSources2dEditor` and `NavMeshSurfaceEditor`

Open DataGreed opened this issue 1 year ago • 3 comments

I get the following errors every time I start the project with CollectSources2d and NavMeshSurface added to gameobject in the root of the Scene:

SerializedObjectNotCreatableException: Object at index 0 is null
UnityEditor.Editor.CreateSerializedObject () (at /Users/bokken/build/output/unity/unity/Editor/Mono/Inspector/Editor.cs:698)
UnityEditor.Editor.GetSerializedObjectInternal () (at /Users/bokken/build/output/unity/unity/Editor/Mono/Inspector/Editor.cs:670)
UnityEditor.Editor.get_serializedObject () (at /Users/bokken/build/output/unity/unity/Editor/Mono/Inspector/Editor.cs:564)
NavMeshPlus.Extensions.Editors.CollectSources2dEditor.OnEnable () (at ./Library/PackageCache/com.h8man.2d.navmeshplus@3291e121ab/NavMeshComponents/Editor/CollectSources2dEditor.cs:16)
SerializedObjectNotCreatableException: Object at index 0 is null
UnityEditor.Editor.CreateSerializedObject () (at /Users/bokken/build/output/unity/unity/Editor/Mono/Inspector/Editor.cs:698)
UnityEditor.Editor.GetSerializedObjectInternal () (at /Users/bokken/build/output/unity/unity/Editor/Mono/Inspector/Editor.cs:670)
UnityEditor.Editor.get_serializedObject () (at /Users/bokken/build/output/unity/unity/Editor/Mono/Inspector/Editor.cs:564)
NavMeshPlus.Components.Editors.NavMeshSurfaceEditor.OnEnable () (at ./Library/PackageCache/com.h8man.2d.navmeshplus@3291e121ab/NavMeshComponents/Editor/NavMeshSurfaceEditor.cs:65)

DataGreed avatar Nov 12 '24 21:11 DataGreed

Version of Unity?

h8man avatar Nov 13 '24 17:11 h8man

@h8man sorry, forgot to include it. It's 2022.3.30f1 , the previous LTS one

DataGreed avatar Nov 13 '24 19:11 DataGreed

@DataGreed did you find a solution for this?

WiseKodama avatar Apr 25 '25 11:04 WiseKodama