- Home /
Force CustomEditor to Update?
Hey, I've looked at a lot of answers here about how to force CustomEditor Inspector to redraw - I've implemented this one (answer #6): https://answers.unity.com/questions/333181/how-do-you-force-a-custom-inspector-to-redraw.html
i mean, in Edit mode - I'm creating a level design tool.
But it doesn't seem to redraw in this circumstance: I've got a button on my inspector that runs a function on it's parent script, and another section of the same inspector that should show the updated information as a result.
But it doesn't redraw with the new data. I have to click somewhere in the scene window, and then back on the object with the inspector to get it to refresh the data shown. It's like the editor is still linked to the old data, even though debug.log shows me the data has changed.
Is there some way to force an update/redraw when I click on that button?
Your answer
Follow this Question
Related Questions
How to Hide/Show List or Array in the inspector based on a variable? 0 Answers
Can not you change the default GUI style of EditorGUI in OnInspectorGUI? 1 Answer
Custom editor super slow even with no draw operations 1 Answer
Automatically increment an integer field in a bunch of prefab gameobjects in the unity editor. 0 Answers