Skip to content

Format

typescript
Transform.parent

class: Transform

Description

The parent Transform of the current Transform.

Parameters

param_nametypedescription

Return

typedescription
TransformThe parent Transform.

Code Example

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