CountInProperty()
Count visible children of this property, including this property itself.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
public int CountInProperty()
Returns
Type | Description |
|---|---|
| int |
Remarks
This is useful for allocating height for drawing this property including its children. Note that calling the method will move the property forward, so if this is not the desired behavior make a copy of the property before calling the method using SerializedProperty.Copy.
Additional Resources: SerializedProperty.hasVisibleChildren, SerializedProperty.CountRemaining