-
Notifications
You must be signed in to change notification settings - Fork 65
Description
NullReferenceException: Object reference not set to an instance of an object
EcsRx.Unity.JSONNode.set_AsVector3 (UnityEngine.Vector3 value) (at Assets/EcsRx/Unity/JSON.cs:949)
EcsRx.Unity.JSONData..ctor (UnityEngine.Vector3 value) (at Assets/EcsRx/Unity/JSON.cs:428)
EcsRx.Unity.Extensions.ComponentExtensions.SerializeComponent (System.Object component) (at Assets/EcsRx/Unity/Extensions/ComponentExtensions.cs:91)
EcsRx.Unity.RegisterAsEntityInspector+c__AnonStorey0.<>m__0 () (at Assets/EcsRx/Unity/Editor/RegisterAsEntityInspector.cs:83)
EcsRx.Unity.Extensions.EditorExtensions.UseVerticalBoxLayout (UnityEditor.Editor editor, System.Action action) (at Assets/EcsRx/Unity/Editor/Extensions/EditorExtensions.cs:17)
EcsRx.Unity.RegisterAsEntityInspector.ComponentListings () (at Assets/EcsRx/Unity/Editor/RegisterAsEntityInspector.cs:51)
EcsRx.Unity.RegisterAsEntityInspector.OnInspectorGUI () (at Assets/EcsRx/Unity/Editor/RegisterAsEntityInspector.cs:134)
UnityEditor.InspectorWindow.DrawEditor (UnityEditor.Editor[] editors, System.Int32 editorIndex, System.Boolean rebuildOptimizedGUIBlock, System.Boolean& showImportedObjectBarNext, UnityEngine.Rect& importedObjectBarRect) (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorWindow.cs:1367)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
I added RegisterAsEntity script to a MonoBehavior, via the editor, and on this, I added a component with a Vector3ReactiveProperty in it. But I remark your rogue example have the same problem if you open the components with Vector3 as RamdomlyPlacedComponent.