Method CreatePrimitive
CreatePrimitive(PrimitiveType)
Creates the specified primitive 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 virtual GameObject CreatePrimitive(PrimitiveType type)
Parameters
| Type | Name | Description |
|---|---|---|
| PrimitiveType | type | Type of primitive. |
Returns
| Type | Description |
|---|---|
| GameObject | GameObject created. |