Method Create
Create()
Creates a new GameObject and returns it. This method also calls GameObjectInstantiated.
Declaration
public static GameObject Create()
Returns
| Type | Description |
|---|---|
| GameObject | The new GameObject. |
Create(string)
Creates a new GameObject and returns it. This method also calls GameObjectInstantiated.
Declaration
public static GameObject Create(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The name to be given to the new GameObject. |
Returns
| Type | Description |
|---|---|
| GameObject | The new GameObject. |