Method AddGameObject
AddGameObject(bool)
Create a gameObject in the stage
Declaration
public GameObject AddGameObject(bool persistent = false)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | persistent | [OPTIONAL] If true, the object is not recreated with the scene update. Default value: false. |
Returns
| Type | Description |
|---|---|
| GameObject |