Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

SerializedProperty.CountInProperty

CountInProperty(): int;
int CountInProperty();
def CountInProperty() as int

Description

Count visible children of this property, including this property itself.

This is useful for allocating height for drawing this property including its children.