Add this component to an object to randomize its position/rotation/scale on demand or automatically.
More...
|
| virtual void | Randomize () |
| | Randomizes position, rotation, scale, and cleanups if necessary.
|
Add this component to an object to randomize its position/rotation/scale on demand or automatically.
◆ AutoExecutionModes
the possible ways to automatically randomize
| Enumerator |
|---|
| Never | |
| OnAwake | |
| OnStart | |
| OnEnable | |
◆ Awake()
| virtual void MoreMountains.Tools.MMTransformRandomizer.Awake |
( |
| ) |
|
|
protectedvirtual |
On Awake we randomize if needed.
◆ Cleanup()
| virtual void MoreMountains.Tools.MMTransformRandomizer.Cleanup |
( |
| ) |
|
|
protectedvirtual |
◆ OnEnable()
| virtual void MoreMountains.Tools.MMTransformRandomizer.OnEnable |
( |
| ) |
|
|
protectedvirtual |
On Enable we randomize if needed.
◆ ProcessRandomizePosition()
| virtual void MoreMountains.Tools.MMTransformRandomizer.ProcessRandomizePosition |
( |
| ) |
|
|
protectedvirtual |
◆ ProcessRandomizeRotation()
| virtual void MoreMountains.Tools.MMTransformRandomizer.ProcessRandomizeRotation |
( |
| ) |
|
|
protectedvirtual |
◆ ProcessRandomizeScale()
| virtual void MoreMountains.Tools.MMTransformRandomizer.ProcessRandomizeScale |
( |
| ) |
|
|
protectedvirtual |
◆ Randomize()
| virtual void MoreMountains.Tools.MMTransformRandomizer.Randomize |
( |
| ) |
|
|
virtual |
Randomizes position, rotation, scale, and cleanups if necessary.
◆ RemoveColliders()
| virtual void MoreMountains.Tools.MMTransformRandomizer.RemoveColliders |
( |
| ) |
|
|
protectedvirtual |
Removes all colliders attached to this object or its children.
◆ Start()
| virtual void MoreMountains.Tools.MMTransformRandomizer.Start |
( |
| ) |
|
|
protectedvirtual |
On Start we randomize if needed.
◆ AutoExecutionMode
the selected auto execution mode
◆ AutoRemoveAfterRandomize
| bool MoreMountains.Tools.MMTransformRandomizer.AutoRemoveAfterRandomize = false |
whether or not to remove this component after randomizing its attributes
◆ MaxRandomPosition
| Vector3 MoreMountains.Tools.MMTransformRandomizer.MaxRandomPosition |
the maximum position to apply when randomizing
◆ MaxRandomRotation
| Vector3 MoreMountains.Tools.MMTransformRandomizer.MaxRandomRotation |
the maximum rotation to apply when randomizing (in degrees)
◆ MaxRandomScale
| Vector3 MoreMountains.Tools.MMTransformRandomizer.MaxRandomScale |
the maximum scale to apply when randomizing
◆ MinRandomPosition
| Vector3 MoreMountains.Tools.MMTransformRandomizer.MinRandomPosition |
the minimum position to apply when randomizing
◆ MinRandomRotation
| Vector3 MoreMountains.Tools.MMTransformRandomizer.MinRandomRotation |
the minimum rotation to apply when randomizing (in degrees)
◆ MinRandomScale
| Vector3 MoreMountains.Tools.MMTransformRandomizer.MinRandomScale |
the minimum scale to apply when randomizing
◆ RandomizePosition
| bool MoreMountains.Tools.MMTransformRandomizer.RandomizePosition = true |
whether or not to randomize position
◆ RandomizeRotation
| bool MoreMountains.Tools.MMTransformRandomizer.RandomizeRotation = true |
whether or not to randomize rotation
◆ RandomizeScale
| bool MoreMountains.Tools.MMTransformRandomizer.RandomizeScale = true |
whether or not to randomize scale
◆ RemoveAllColliders
| bool MoreMountains.Tools.MMTransformRandomizer.RemoveAllColliders = false |
whether or not to remove all colliders attached to this object
The documentation for this class was generated from the following file: