Method CreateGameObject
CreateGameObject(string, params Type[])
Creates gameObject and keeps track of it, so it is cleaned up properly at [TearDown]. Uses appropriate method depending on whether the test is playing.
Declaration
protected GameObject CreateGameObject(string name, params Type[] components)
Parameters
Type | Name | Description |
---|---|---|
string | name | Name of the gameObject. |
Type[] | components | Components to add to the gameObject. |
Returns
Type | Description |
---|---|
GameObject | GameObject created. |