You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When drawing an array of serializable classes (as SerializeField) that contains a SubclassSelector, the property height does not update immediately when changing the type. The weird part is that logging "Debug.Log(EditorGUI.GetPropertyHeight(property,true));" did show it updating immediately. I also wrote my own Custom Property Drawer which does not have this issue, though I cannot figure out why. I have attached a video of the issue.
I have tried to reproduce the problem on my end, but could not.
One possibility is that the process is delegate when the item is selected and is out of the PropertyDrawer.OnGUI cycle, so it is not redrawing properly.
The following file is the unitypackage for this branch.
In this package, serializedObject.Update() is called when an item is selected.
Thanks for the help, that may have solved it though I can't tell as I did update my project to 2020.3.32 and this was in the release notes for 2020.3.31:
I'll close the issue though as the problem is resolved.
What happened?
When drawing an array of serializable classes (as SerializeField) that contains a SubclassSelector, the property height does not update immediately when changing the type. The weird part is that logging "Debug.Log(EditorGUI.GetPropertyHeight(property,true));" did show it updating immediately. I also wrote my own Custom Property Drawer which does not have this issue, though I cannot figure out why. I have attached a video of the issue.
bandicam.2022-03-28.09-34-47-997.mp4
Here is a video of my version without the issue:
bandicam.2022-03-28.10-03-44-584.mp4
and the code:
https://gist.github.com/chadefranklin/cd2e6c4d89928ce25274395ff8690f9a
Package Version
1.1.2
Unity Version
2020.3.30f1
The text was updated successfully, but these errors were encountered: