Feel  3.16
The best way to improve your game's feel and make it extra juicy
MoreMountains.Tools.MMStayInPlace Class Reference

This class forces a transform to stay at a fixed position, rotation and/or scale. More...

Inheritance diagram for MoreMountains.Tools.MMStayInPlace:

Public Types

enum  Spaces { Spaces.World, Spaces.Local }
 
enum  UpdateModes { UpdateModes.Update, UpdateModes.FixedUpdate, UpdateModes.LateUpdate }
 

Public Attributes

UpdateModes UpdateMode = UpdateModes.LateUpdate
 
Spaces Space = Spaces.World
 
bool FixedPosition = true
 
bool FixedRotation = true
 
bool FixedScale = true
 
bool OverridePosition = false
 
Vector3 OverridePositionValue
 
bool OverrideRotation = false
 
Vector3 OverrideRotationValue
 
bool OverrideScale = false
 
Vector3 OverrideScaleValue
 

Protected Member Functions

virtual void Awake ()
 
virtual void Initialization ()
 
virtual void Update ()
 
virtual void FixedUpdate ()
 
virtual void LateUpdate ()
 
virtual void StayInPlace ()
 

Protected Attributes

Vector3 _initialPosition
 
Quaternion _initialRotation
 
Vector3 _initialScale
 

Detailed Description

This class forces a transform to stay at a fixed position, rotation and/or scale.

Member Enumeration Documentation

◆ Spaces

Enumerator
World 
Local 

◆ UpdateModes

Enumerator
Update 
FixedUpdate 
LateUpdate 

Member Function Documentation

◆ Awake()

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

◆ FixedUpdate()

virtual void MoreMountains.Tools.MMStayInPlace.FixedUpdate ( )
protectedvirtual

◆ Initialization()

virtual void MoreMountains.Tools.MMStayInPlace.Initialization ( )
protectedvirtual

◆ LateUpdate()

virtual void MoreMountains.Tools.MMStayInPlace.LateUpdate ( )
protectedvirtual

◆ StayInPlace()

virtual void MoreMountains.Tools.MMStayInPlace.StayInPlace ( )
protectedvirtual

◆ Update()

virtual void MoreMountains.Tools.MMStayInPlace.Update ( )
protectedvirtual

Member Data Documentation

◆ _initialPosition

Vector3 MoreMountains.Tools.MMStayInPlace._initialPosition
protected

◆ _initialRotation

Quaternion MoreMountains.Tools.MMStayInPlace._initialRotation
protected

◆ _initialScale

Vector3 MoreMountains.Tools.MMStayInPlace._initialScale
protected

◆ FixedPosition

bool MoreMountains.Tools.MMStayInPlace.FixedPosition = true

◆ FixedRotation

bool MoreMountains.Tools.MMStayInPlace.FixedRotation = true

◆ FixedScale

bool MoreMountains.Tools.MMStayInPlace.FixedScale = true

◆ OverridePosition

bool MoreMountains.Tools.MMStayInPlace.OverridePosition = false

◆ OverridePositionValue

Vector3 MoreMountains.Tools.MMStayInPlace.OverridePositionValue

◆ OverrideRotation

bool MoreMountains.Tools.MMStayInPlace.OverrideRotation = false

◆ OverrideRotationValue

Vector3 MoreMountains.Tools.MMStayInPlace.OverrideRotationValue

◆ OverrideScale

bool MoreMountains.Tools.MMStayInPlace.OverrideScale = false

◆ OverrideScaleValue

Vector3 MoreMountains.Tools.MMStayInPlace.OverrideScaleValue

◆ Space

Spaces MoreMountains.Tools.MMStayInPlace.Space = Spaces.World

◆ UpdateMode

UpdateModes MoreMountains.Tools.MMStayInPlace.UpdateMode = UpdateModes.LateUpdate

The documentation for this class was generated from the following file: