- Home /
PropertyDrawer not updating in custom inspector.
Hi folks,
I've got class A, not derived from anything at all but marked as serializable. I've got class B that has a member variable of type class A.
I have a custom inspector for class B, and to display class A, I'm using a property drawer. This all works great; however, if I change an option in class A within the inspector of class B, it doesn't update. If the GUI.changed flag is set, I call EditorUtility.SetDirty on my class B object, but that doesn't work.
If I call base.OnInspectorGUI() instead of doing my own custom editor stuff, class A updates fine.
Is there a way to force a repaint if my property drawer object changed?
Your answer
Follow this Question
Related Questions
Select a readonly value from dropdown using PropertyDrawers 0 Answers
Texture2D on Property Drawers. 0 Answers
CustomAttribute on Class or Method ( EDIT: Button to call methods) 2 Answers
Drawing Editor Inspector GUI based on selected/current prefab (CustomPropertyDrawer) 2 Answers
Creating a PropertyDrawer for a fixed size int array 1 Answer