Issue #97 resolved
William William created an issue

I added a custom class to be viewed by Odin and it shits the bed with a color32 var, when i convert the color32 to color it works.

I am using unity 2017b7. I tried both with .net 4.5 (experimental) and the 3.5 stable and both times it didn't work.

Could not get Unity property at path regimeList.Array.data[0].unitBackGroundColor.rgba
UnityEngine.Debug:LogError(Object)
Sirenix.OdinInspector.Editor.UnityPropertyValueEntry`2:GetActualValue(Color32) (at C:/Users/Bjarke/Desktop/Projects/Sirenix Development Framework/Sirenix Solution/Sirenix.OdinInspector.Editor/Misc/DrawerPriority.cs:349)
Sirenix.OdinInspector.Editor.PropertyValueEntry`2:UpdateValues()
Sirenix.OdinInspector.Editor.PropertyValueEntry:Update()
Sirenix.OdinInspector.Editor.InspectorProperty:UpdateValueEntry() (at C:/Users/Bjarke/Desktop/Projects/Sirenix Development Framework/Sirenix Solution/Sirenix.OdinInspector.Editor/Misc/SerializedPropertyUtilities.cs:209)
Sirenix.OdinInspector.Editor.InspectorProperty:Update(Boolean) (at C:/Users/Bjarke/Desktop/Projects/Sirenix Development Framework/Sirenix Solution/Sirenix.OdinInspector.Editor/Misc/OdinInspectorAboutWindow.cs:98)
Sirenix.OdinInspector.Editor.PropertyChildren:Get(Int32) (at C:/Users/Bjarke/Desktop/Projects/Sirenix Development Framework/Sirenix Solution/Sirenix.OdinInspector.Editor/Core/InspectorProperty.cs:341)
Sirenix.OdinInspector.Editor.PropertyTree`1:UpdateProperty(InspectorProperty) (at C:/Users/Bjarke/Desktop/Projects/Sirenix Development Framework/Sirenix Solution/Sirenix.OdinInspector.Editor/Drawers/Attribute Drawers/GUIColorAttributeDrawer.cs:32)
Sirenix.OdinInspector.Editor.PropertyTree`1:UpdateProperty(InspectorProperty) (at C:/Users/Bjarke/Desktop/Projects/Sirenix Development Framework/Sirenix Solution/Sirenix.OdinInspector.Editor/Drawers/Attribute Drawers/GUIColorAttributeDrawer.cs:32)
Sirenix.OdinInspector.Editor.PropertyTree`1:UpdateProperty(InspectorProperty) (at C:/Users/Bjarke/Desktop/Projects/Sirenix Development Framework/Sirenix Solution/Sirenix.OdinInspector.Editor/Drawers/Attribute Drawers/GUIColorAttributeDrawer.cs:32)
Sirenix.OdinInspector.Editor.PropertyTree`1:UpdateProperty(InspectorProperty) (at C:/Users/Bjarke/Desktop/Projects/Sirenix Development Framework/Sirenix Solution/Sirenix.OdinInspector.Editor/Drawers/Attribute Drawers/GUIColorAttributeDrawer.cs:32)
Sirenix.OdinInspector.Editor.PropertyTree`1:UpdateTree() (at C:/Users/Bjarke/Desktop/Projects/Sirenix Development Framework/Sirenix Solution/Sirenix.OdinInspector.Editor/Drawers/Attribute Drawers/DelayedAttributeDrawer.cs:312)
Sirenix.OdinInspector.Editor.InspectorUtilities:BeginDrawPropertyTree(PropertyTree, Boolean)
Sirenix.OdinInspector.Editor.PropertyTree:Draw(Boolean) (at C:/Users/Bjarke/Desktop/Projects/Sirenix Development Framework/Sirenix Solution/Sirenix.OdinInspector.Editor/Drawers/Value Drawers/UnityPropertyDrawer.cs:20)
MapBuilderOdinEditor:OnGUI() (at Assets/WarGame/_script/grids/Editor/MapBuilderOdinEditor.cs:37)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

An exception was thrown while trying to update the property at path: _DefaultTabGroup.regimeList.$0.unitBackGroundColor.
UnityEngine.Debug:Log(Object)
Sirenix.OdinInspector.Editor.PropertyTree`1:UpdateProperty(InspectorProperty) (at C:/Users/Bjarke/Desktop/Projects/Sirenix Development Framework/Sirenix Solution/Sirenix.OdinInspector.Editor/Drawers/Attribute Drawers/GUIColorAttributeDrawer.cs:32)
Sirenix.OdinInspector.Editor.PropertyTree`1:UpdateProperty(InspectorProperty) (at C:/Users/Bjarke/Desktop/Projects/Sirenix Development Framework/Sirenix Solution/Sirenix.OdinInspector.Editor/Drawers/Attribute Drawers/GUIColorAttributeDrawer.cs:32)
Sirenix.OdinInspector.Editor.PropertyTree`1:UpdateProperty(InspectorProperty) (at C:/Users/Bjarke/Desktop/Projects/Sirenix Development Framework/Sirenix Solution/Sirenix.OdinInspector.Editor/Drawers/Attribute Drawers/GUIColorAttributeDrawer.cs:32)
Sirenix.OdinInspector.Editor.PropertyTree`1:UpdateProperty(InspectorProperty) (at C:/Users/Bjarke/Desktop/Projects/Sirenix Development Framework/Sirenix Solution/Sirenix.OdinInspector.Editor/Drawers/Attribute Drawers/GUIColorAttributeDrawer.cs:32)
Sirenix.OdinInspector.Editor.PropertyTree`1:UpdateTree() (at C:/Users/Bjarke/Desktop/Projects/Sirenix Development Framework/Sirenix Solution/Sirenix.OdinInspector.Editor/Drawers/Attribute Drawers/DelayedAttributeDrawer.cs:312)
Sirenix.OdinInspector.Editor.InspectorUtilities:BeginDrawPropertyTree(PropertyTree, Boolean)
Sirenix.OdinInspector.Editor.PropertyTree:Draw(Boolean) (at C:/Users/Bjarke/Desktop/Projects/Sirenix Development Framework/Sirenix Solution/Sirenix.OdinInspector.Editor/Drawers/Value Drawers/UnityPropertyDrawer.cs:20)
MapBuilderOdinEditor:OnGUI() (at Assets/WarGame/_script/grids/Editor/MapBuilderOdinEditor.cs:37)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

NullReferenceException: Object reference not set to an instance of an object
Sirenix.OdinInspector.Editor.SerializedPropertyUtilities+<>c.<.cctor>b__10_0 (UnityEditor.SerializedProperty p) <0x36f4c150 + 0x00058> in <ed231e7ea6c04ec683c3b380d05a20ac>:0
Sirenix.OdinInspector.Editor.UnityPropertyValueEntry`2[TParent,TValue].GetActualValue (TParent parent) (at C:/Users/Bjarke/Desktop/Projects/Sirenix Development Framework/Sirenix Solution/Sirenix.OdinInspector.Editor/Misc/DrawerPriority.cs:349)
Sirenix.OdinInspector.Editor.PropertyValueEntry`2[TParent,TValue].UpdateValues () (at <ed231e7ea6c04ec683c3b380d05a20ac>:0)
Sirenix.OdinInspector.Editor.PropertyValueEntry.Update () <0x36e084a0 + 0x00078> in <ed231e7ea6c04ec683c3b380d05a20ac>:0
Sirenix.OdinInspector.Editor.InspectorProperty.UpdateValueEntry () (at C:/Users/Bjarke/Desktop/Projects/Sirenix Development Framework/Sirenix Solution/Sirenix.OdinInspector.Editor/Misc/SerializedPropertyUtilities.cs:209)
Sirenix.OdinInspector.Editor.InspectorProperty.Update (System.Boolean forceUpdate) (at C:/Users/Bjarke/Desktop/Projects/Sirenix Development Framework/Sirenix Solution/Sirenix.OdinInspector.Editor/Misc/OdinInspectorAboutWindow.cs:98)
Sirenix.OdinInspector.Editor.PropertyChildren.Get (System.Int32 index) (at C:/Users/Bjarke/Desktop/Projects/Sirenix Development Framework/Sirenix Solution/Sirenix.OdinInspector.Editor/Core/InspectorProperty.cs:341)
Sirenix.OdinInspector.Editor.PropertyTree`1[T].UpdateProperty (Sirenix.OdinInspector.Editor.InspectorProperty property) (at C:/Users/Bjarke/Desktop/Projects/Sirenix Development Framework/Sirenix Solution/Sirenix.OdinInspector.Editor/Drawers/Attribute Drawers/GUIColorAttributeDrawer.cs:32)
UnityEngine.Debug:LogException(Exception)
Sirenix.OdinInspector.Editor.PropertyTree`1:UpdateProperty(InspectorProperty) (at C:/Users/Bjarke/Desktop/Projects/Sirenix Development Framework/Sirenix Solution/Sirenix.OdinInspector.Editor/Drawers/Attribute Drawers/GUIColorAttributeDrawer.cs:32)
Sirenix.OdinInspector.Editor.PropertyTree`1:UpdateProperty(InspectorProperty) (at C:/Users/Bjarke/Desktop/Projects/Sirenix Development Framework/Sirenix Solution/Sirenix.OdinInspector.Editor/Drawers/Attribute Drawers/GUIColorAttributeDrawer.cs:32)
Sirenix.OdinInspector.Editor.PropertyTree`1:UpdateProperty(InspectorProperty) (at C:/Users/Bjarke/Desktop/Projects/Sirenix Development Framework/Sirenix Solution/Sirenix.OdinInspector.Editor/Drawers/Attribute Drawers/GUIColorAttributeDrawer.cs:32)
Sirenix.OdinInspector.Editor.PropertyTree`1:UpdateProperty(InspectorProperty) (at C:/Users/Bjarke/Desktop/Projects/Sirenix Development Framework/Sirenix Solution/Sirenix.OdinInspector.Editor/Drawers/Attribute Drawers/GUIColorAttributeDrawer.cs:32)
Sirenix.OdinInspector.Editor.PropertyTree`1:UpdateTree() (at C:/Users/Bjarke/Desktop/Projects/Sirenix Development Framework/Sirenix Solution/Sirenix.OdinInspector.Editor/Drawers/Attribute Drawers/DelayedAttributeDrawer.cs:312)
Sirenix.OdinInspector.Editor.InspectorUtilities:BeginDrawPropertyTree(PropertyTree, Boolean)
Sirenix.OdinInspector.Editor.PropertyTree:Draw(Boolean) (at C:/Users/Bjarke/Desktop/Projects/Sirenix Development Framework/Sirenix Solution/Sirenix.OdinInspector.Editor/Drawers/Value Drawers/UnityPropertyDrawer.cs:20)
MapBuilderOdinEditor:OnGUI() (at Assets/WarGame/_script/grids/Editor/MapBuilderOdinEditor.cs:37)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

Comments (1)

  1. Log in to comment