ScriptReference/SerializedProperty.NextVisible #168
Replies: 1 comment
-
To iterate over the children of a Property for the purposes of displaying PropertyFields: SerializedProperty end = prop.GetEndProperty();
bool enterChildren = true;
while (prop.NextVisible(enterChildren) && !SerializedProperty.EqualContents(prop, end))
{
root.Add(new PropertyField(prop));
enterChildren = false;
} Where prop is your SerializedProperty.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
ScriptReference/SerializedProperty.NextVisible
https://docs.unity3d.com/ScriptReference/SerializedProperty.NextVisible.html
Beta Was this translation helpful? Give feedback.
All reactions