Skip to content

Format

typescript
Transform.childCount

class: Transform

Description

(Read Only) The number of child transforms of the current Transform (excluding the parent Transform).

Parameters

param_nametypedescription

Return

typedescription
numberThe number of child transforms.

Code Example

typescript
OnStart(): void {
    let count = this.transform.childCount;
    Debug.Log(count);
    }