Skip to content

format

typescript
GameObject.name

class: GameObject

description

The name of the current object.

parameter

param_nametypedescription

reture

typedescription
stringThe name of the current object.

code example

typescript
let go = new GameObject("test");
Debug.Log(go.name);