Inventory Engine v4.2
Loading...
Searching...
No Matches
MoreMountains.Tools.MMPropertyReceiver Class Reference

A class used to pick a property and modify its value. More...

Inherits MoreMountains.Tools.MMPropertyPicker.

Public Member Functions

float GetLevel ()
virtual void SetLevel (float newLevel)
 Sets the level.
Public Member Functions inherited from MoreMountains.Tools.MMPropertyPicker
virtual void Initialization (GameObject source)
 When the property picker gets initialized, it grabs the stored property or field and initializes a MMProperty and MMPropertyLink.
virtual object GetRawValue ()
 Returns the raw value of the target property.

Public Attributes

bool ShouldModifyValue = true
 values will only be modified if this is true
bool RelativeValue = true
 whether or not to add to this property's initial value
bool ModifyX = true
 whether or not to modify the X value of this vector
bool ModifyY = true
 whether or not to modify the Y value of this vector
bool ModifyZ = true
 whether or not to modify the Z value of this vector
bool ModifyW = true
 whether or not to modify the W value of this vector
float Threshold = 0.5f
 the threshold after which the float level should make this bool false or true
bool BoolRemapZero = false
 the state to remap a float's zero to
bool BoolRemapOne = true
 the state to remap a float's one to
string StringRemapZero = "Zero"
 the string to remap a float's zero to
string StringRemapOne = "One"
 the string to remap a float's zero to
int IntRemapZero = 0
 the int value to remap the level's zero to
int IntRemapOne = 1
 the int value to remap the level's 1 to
float FloatRemapZero = 0f
 the float value to remap the level's 0 to
float FloatRemapOne = 1f
 the float value to remap the level's 1 to
Vector2 Vector2RemapZero = Vector2.zero
 the vector2 value to remap the level's 0 to
Vector2 Vector2RemapOne = Vector2.one
 the vector2 value to remap the level's 1 to
Vector3 Vector3RemapZero = Vector3.zero
 the vector3 value to remap the level's 0 to
Vector3 Vector3RemapOne = Vector3.one
 the vector3 value to remap the level's 1 to
Vector4 Vector4RemapZero = Vector4.zero
 the vector4 value to remap the level's 0 to
Vector4 Vector4RemapOne = Vector4.one
 the vector4 value to remap the level's 1 to
Vector3 QuaternionRemapZero = Vector3.zero
 the quaternion value to remap the level's 0 to
Vector3 QuaternionRemapOne = new Vector3(180f, 180f, 180f)
 the quaternion value to remap the level's 1 to
Color ColorRemapZero = Color.white
 the color value to remap the level's 0 to
Color ColorRemapOne = Color.black
 the color value to remap the level's 1 to
float Level = 0f
 the current level
Public Attributes inherited from MoreMountains.Tools.MMPropertyPicker
UnityEngine.Object TargetObject
 the target object to look for a property on
Component TargetComponent
 the component to look for a property on | storage only, not displayed in the inspector
ScriptableObject TargetScriptableObject
 the component to look for a property on | storage only, not displayed in the inspector
string TargetPropertyName
 the name of the property to link to

Additional Inherited Members

Protected Attributes inherited from MoreMountains.Tools.MMPropertyPicker
MMProperty _targetMMProperty
bool _initialized = false
MMPropertyLink _propertySetter
Properties inherited from MoreMountains.Tools.MMPropertyPicker
virtual bool PropertyFound [get, protected set]
 whether or not this property has been found

Detailed Description

A class used to pick a property and modify its value.

Member Function Documentation

◆ GetLevel()

float MoreMountains.Tools.MMPropertyReceiver.GetLevel ( )

◆ SetLevel()

virtual void MoreMountains.Tools.MMPropertyReceiver.SetLevel ( float newLevel)
virtual

Sets the level.

Parameters
newLevel

Member Data Documentation

◆ BoolRemapOne

bool MoreMountains.Tools.MMPropertyReceiver.BoolRemapOne = true

the state to remap a float's one to

◆ BoolRemapZero

bool MoreMountains.Tools.MMPropertyReceiver.BoolRemapZero = false

the state to remap a float's zero to

◆ ColorRemapOne

Color MoreMountains.Tools.MMPropertyReceiver.ColorRemapOne = Color.black

the color value to remap the level's 1 to

◆ ColorRemapZero

Color MoreMountains.Tools.MMPropertyReceiver.ColorRemapZero = Color.white

the color value to remap the level's 0 to

◆ FloatRemapOne

float MoreMountains.Tools.MMPropertyReceiver.FloatRemapOne = 1f

the float value to remap the level's 1 to

◆ FloatRemapZero

float MoreMountains.Tools.MMPropertyReceiver.FloatRemapZero = 0f

the float value to remap the level's 0 to

◆ IntRemapOne

int MoreMountains.Tools.MMPropertyReceiver.IntRemapOne = 1

the int value to remap the level's 1 to

◆ IntRemapZero

int MoreMountains.Tools.MMPropertyReceiver.IntRemapZero = 0

the int value to remap the level's zero to

◆ Level

float MoreMountains.Tools.MMPropertyReceiver.Level = 0f

the current level

◆ ModifyW

bool MoreMountains.Tools.MMPropertyReceiver.ModifyW = true

whether or not to modify the W value of this vector

◆ ModifyX

bool MoreMountains.Tools.MMPropertyReceiver.ModifyX = true

whether or not to modify the X value of this vector

◆ ModifyY

bool MoreMountains.Tools.MMPropertyReceiver.ModifyY = true

whether or not to modify the Y value of this vector

◆ ModifyZ

bool MoreMountains.Tools.MMPropertyReceiver.ModifyZ = true

whether or not to modify the Z value of this vector

◆ QuaternionRemapOne

Vector3 MoreMountains.Tools.MMPropertyReceiver.QuaternionRemapOne = new Vector3(180f, 180f, 180f)

the quaternion value to remap the level's 1 to

◆ QuaternionRemapZero

Vector3 MoreMountains.Tools.MMPropertyReceiver.QuaternionRemapZero = Vector3.zero

the quaternion value to remap the level's 0 to

◆ RelativeValue

bool MoreMountains.Tools.MMPropertyReceiver.RelativeValue = true

whether or not to add to this property's initial value

◆ ShouldModifyValue

bool MoreMountains.Tools.MMPropertyReceiver.ShouldModifyValue = true

values will only be modified if this is true

◆ StringRemapOne

string MoreMountains.Tools.MMPropertyReceiver.StringRemapOne = "One"

the string to remap a float's zero to

◆ StringRemapZero

string MoreMountains.Tools.MMPropertyReceiver.StringRemapZero = "Zero"

the string to remap a float's zero to

◆ Threshold

float MoreMountains.Tools.MMPropertyReceiver.Threshold = 0.5f

the threshold after which the float level should make this bool false or true

◆ Vector2RemapOne

Vector2 MoreMountains.Tools.MMPropertyReceiver.Vector2RemapOne = Vector2.one

the vector2 value to remap the level's 1 to

◆ Vector2RemapZero

Vector2 MoreMountains.Tools.MMPropertyReceiver.Vector2RemapZero = Vector2.zero

the vector2 value to remap the level's 0 to

◆ Vector3RemapOne

Vector3 MoreMountains.Tools.MMPropertyReceiver.Vector3RemapOne = Vector3.one

the vector3 value to remap the level's 1 to

◆ Vector3RemapZero

Vector3 MoreMountains.Tools.MMPropertyReceiver.Vector3RemapZero = Vector3.zero

the vector3 value to remap the level's 0 to

◆ Vector4RemapOne

Vector4 MoreMountains.Tools.MMPropertyReceiver.Vector4RemapOne = Vector4.one

the vector4 value to remap the level's 1 to

◆ Vector4RemapZero

Vector4 MoreMountains.Tools.MMPropertyReceiver.Vector4RemapZero = Vector4.zero

the vector4 value to remap the level's 0 to


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