Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
DataGreed opened this issue Nov 12, 2024 · 2 comments

Comments

@DataGreed
Copy link

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)
@h8man
Copy link
Owner

h8man commented Nov 13, 2024

Version of Unity?

@DataGreed
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants