Format
typescript
Transform.FindChild(name)class: Transform
Description
Find the child Transform of the current Transform attached to the game object by its name.
This method searches for the child Transform using a relative path, which means it is relative to the current Transform object.
Parameters
| param_name | type | description |
|---|---|---|
| name | string | The name of the child game object attached to the Transform. |
Return
| type | description |
|---|---|
Transform | The child Transform. |
Code Example
typescript
OnStart(): void {
let transform = this.transform;
let child = transform.FindChild("childname");
}