Feel 5.9.1
The best way to improve your game's feel and make it extra juicy
Loading...
Searching...
No Matches
MoreMountains.Tools.MMTransformRandomizer Class Reference

Add this component to an object to randomize its position/rotation/scale on demand or automatically. More...

Inheritance diagram for MoreMountains.Tools.MMTransformRandomizer:

Public Types

enum  AutoExecutionModes { Never , OnAwake , OnStart , OnEnable }
 the possible ways to automatically randomize More...

Public Member Functions

virtual void Randomize ()
 Randomizes position, rotation, scale, and cleanups if necessary.

Public Attributes

bool RandomizePosition = true
 whether or not to randomize position
Vector3 MinRandomPosition
 the minimum position to apply when randomizing
Vector3 MaxRandomPosition
 the maximum position to apply when randomizing
bool RandomizeRotation = true
 whether or not to randomize rotation
Vector3 MinRandomRotation
 the minimum rotation to apply when randomizing (in degrees)
Vector3 MaxRandomRotation
 the maximum rotation to apply when randomizing (in degrees)
bool RandomizeScale = true
 whether or not to randomize scale
Vector3 MinRandomScale
 the minimum scale to apply when randomizing
Vector3 MaxRandomScale
 the maximum scale to apply when randomizing
bool AutoRemoveAfterRandomize = false
 whether or not to remove this component after randomizing its attributes
bool RemoveAllColliders = false
 whether or not to remove all colliders attached to this object
AutoExecutionModes AutoExecutionMode = AutoExecutionModes.Never
 the selected auto execution mode

Protected Member Functions

virtual void Awake ()
 On Awake we randomize if needed.
virtual void Start ()
 On Start we randomize if needed.
virtual void OnEnable ()
 On Enable we randomize if needed.
virtual void ProcessRandomizePosition ()
 Randomizes the position.
virtual void ProcessRandomizeRotation ()
 Randomizes the rotation.
virtual void ProcessRandomizeScale ()
 Randomizes the scale.
virtual void RemoveColliders ()
 Removes all colliders attached to this object or its children.
virtual void Cleanup ()
 Destroys this component.

Detailed Description

Add this component to an object to randomize its position/rotation/scale on demand or automatically.

Member Enumeration Documentation

◆ AutoExecutionModes

the possible ways to automatically randomize

Enumerator
Never 
OnAwake 
OnStart 
OnEnable 

Member Function Documentation

◆ Awake()

virtual void MoreMountains.Tools.MMTransformRandomizer.Awake ( )
protectedvirtual

On Awake we randomize if needed.

◆ Cleanup()

virtual void MoreMountains.Tools.MMTransformRandomizer.Cleanup ( )
protectedvirtual

Destroys this component.

◆ OnEnable()

virtual void MoreMountains.Tools.MMTransformRandomizer.OnEnable ( )
protectedvirtual

On Enable we randomize if needed.

◆ ProcessRandomizePosition()

virtual void MoreMountains.Tools.MMTransformRandomizer.ProcessRandomizePosition ( )
protectedvirtual

Randomizes the position.

◆ ProcessRandomizeRotation()

virtual void MoreMountains.Tools.MMTransformRandomizer.ProcessRandomizeRotation ( )
protectedvirtual

Randomizes the rotation.

◆ ProcessRandomizeScale()

virtual void MoreMountains.Tools.MMTransformRandomizer.ProcessRandomizeScale ( )
protectedvirtual

Randomizes the scale.

◆ 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.

Member Data Documentation

◆ AutoExecutionMode

AutoExecutionModes MoreMountains.Tools.MMTransformRandomizer.AutoExecutionMode = AutoExecutionModes.Never

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: