文档

Unity Engine

Unity Engine

CountInProperty()

Count visible children of this property, including this property itself.
阅读时间1 分钟最后更新于 1 个月前

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.