format
typescript
GameObject.Instantiate(origin)class: GameObject
description
Instantiate an entity object with the same properties as the parameter object.
parameter
| param_name | type | description |
|---|---|---|
| origin | GameObject | The object to be copied. |
return
| type | description |
|---|---|
GameObject | The copied object. |
code example
typescript
let go = new GameObject("test");
let copy = GameObject.Instantiate(go);