I’m trying to get the names of all children in a SerializedProperty object. You can get the number of children, but I can’t find how to get the children themselves
You need to iterate:
SerializedProperty it = myProp.Copy ();
while (it.Next (true)) { // or NextVisible, also, the bool argument specifies whether to enter on children or not
Debug.Log (it.name);
}
Also, SerializedObject.GetIterator let’s you access the whole serialized object.