Feel  5.1
The best way to improve your game's feel and make it extra juicy
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 { AutoExecutionModes.Never, AutoExecutionModes.OnAwake, AutoExecutionModes.OnStart, AutoExecutionModes.OnEnable }
 the possible ways to automatically randomize More...
 

Public Member Functions

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

Public Attributes

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

Protected Member Functions

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

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: