Format
typescript
Transform.childCountclass: Transform
Description
(Read Only) The number of child transforms of the current Transform (excluding the parent Transform).
Parameters
| param_name | type | description |
|---|
Return
| type | description |
|---|---|
number | The number of child transforms. |
Code Example
typescript
OnStart(): void {
let count = this.transform.childCount;
Debug.Log(count);
}