|
Inventory Engine v4.2
|
This static class is a spawn helper, useful to randomize position, rotation and scale when you need to instantiate objects. More...
Static Public Member Functions | |
| static void | ApplySpawnAroundProperties (GameObject instantiatedObj, MMSpawnAroundProperties props, Vector3 origin) |
| static Vector3 | SpawnAroundPosition (MMSpawnAroundProperties props, Vector3 origin) |
| Returns the position at which the object should spawn. | |
| static Vector3 | PickPositionInsideCube (MMSpawnAroundProperties props) |
| static Vector3 | SpawnAroundScale (MMSpawnAroundProperties props) |
| Returns the scale at which the object should spawn. | |
| static Quaternion | SpawnAroundRotation (MMSpawnAroundProperties props) |
| Returns the rotation at which the object should spawn. | |
| static void | DrawGizmos (MMSpawnAroundProperties props, Vector3 origin, int quantity, float size, Color gizmosColor) |
| Draws gizmos to show the shape of the spawn area. | |
This static class is a spawn helper, useful to randomize position, rotation and scale when you need to instantiate objects.
|
static |
|
static |
Draws gizmos to show the shape of the spawn area.
| props | |
| origin | |
| quantity | |
| size |
|
static |
|
static |
Returns the position at which the object should spawn.
| props | |
| origin |
|
static |
Returns the rotation at which the object should spawn.
| props |
|
static |
Returns the scale at which the object should spawn.
| props |