- Home /
 
               Question by 
               tonycoculuzzi · Sep 09, 2014 at 05:37 PM · 
                editorserializationserializedproperty  
              
 
              Is there a way to get the names of all SerializedProperty objects in a SerializedProperty object?
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
               Comment
              
 
               
               
               Best Answer 
              
 
              Answer by frarees · Oct 03, 2014 at 03:09 PM
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.
Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                