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

A class used to pick a property, and remap its value for emission/broadcast. More...

Inherits MoreMountains.Tools.MMPropertyPicker.

Public Types

enum  Vector2Options { X , Y }
 the possible axis to look for on a Vector2 More...
enum  Vector3Options { X , Y , Z }
 the possible axis to look for on a Vector3 More...
enum  Vector4Options { X , Y , Z , W }
 the possible axis to look for on a Vector4 More...

Public Member Functions

virtual float GetLevel ()
 Gets this property's 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 ClampMin = true
 the min value to clamp this property value to
bool ClampMax = true
 the max value to clamp this property value to
Vector2Options Vector2Option
 the selected axis on Vector2
Vector3Options Vector3Option
 the selected axis on Vector3
Vector4Options Vector4Option
 the selected axis on Vector4
float BoolRemapFalse = 0f
 what to remap a false value to
float BoolRemapTrue = 1f
 what to remap a true value to
int IntRemapMinToZero = 0
 what to remap the int min to
int IntRemapMaxToOne = 1
 what to remap the int max to
float FloatRemapMinToZero = 0f
 what to remap the float min to
float FloatRemapMaxToOne = 1f
 what to remap the float max to
float QuaternionRemapMinToZero = 0f
 what to remap the quaternion min to
float QuaternionRemapMaxToOne = 360f
 what to remap the quaternion max to
float Level = 0f
 this property's 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 remap its value for emission/broadcast.

Member Enumeration Documentation

◆ Vector2Options

the possible axis to look for on a Vector2

Enumerator

◆ Vector3Options

the possible axis to look for on a Vector3

Enumerator

◆ Vector4Options

the possible axis to look for on a Vector4

Enumerator

Member Function Documentation

◆ GetLevel()

virtual float MoreMountains.Tools.MMPropertyEmitter.GetLevel ( )
virtual

Gets this property's level.

Returns

Member Data Documentation

◆ BoolRemapFalse

float MoreMountains.Tools.MMPropertyEmitter.BoolRemapFalse = 0f

what to remap a false value to

◆ BoolRemapTrue

float MoreMountains.Tools.MMPropertyEmitter.BoolRemapTrue = 1f

what to remap a true value to

◆ ClampMax

bool MoreMountains.Tools.MMPropertyEmitter.ClampMax = true

the max value to clamp this property value to

◆ ClampMin

bool MoreMountains.Tools.MMPropertyEmitter.ClampMin = true

the min value to clamp this property value to

◆ FloatRemapMaxToOne

float MoreMountains.Tools.MMPropertyEmitter.FloatRemapMaxToOne = 1f

what to remap the float max to

◆ FloatRemapMinToZero

float MoreMountains.Tools.MMPropertyEmitter.FloatRemapMinToZero = 0f

what to remap the float min to

◆ IntRemapMaxToOne

int MoreMountains.Tools.MMPropertyEmitter.IntRemapMaxToOne = 1

what to remap the int max to

◆ IntRemapMinToZero

int MoreMountains.Tools.MMPropertyEmitter.IntRemapMinToZero = 0

what to remap the int min to

◆ Level

float MoreMountains.Tools.MMPropertyEmitter.Level = 0f

this property's current level

◆ QuaternionRemapMaxToOne

float MoreMountains.Tools.MMPropertyEmitter.QuaternionRemapMaxToOne = 360f

what to remap the quaternion max to

◆ QuaternionRemapMinToZero

float MoreMountains.Tools.MMPropertyEmitter.QuaternionRemapMinToZero = 0f

what to remap the quaternion min to

◆ Vector2Option

Vector2Options MoreMountains.Tools.MMPropertyEmitter.Vector2Option

the selected axis on Vector2

◆ Vector3Option

Vector3Options MoreMountains.Tools.MMPropertyEmitter.Vector3Option

the selected axis on Vector3

◆ Vector4Option

Vector4Options MoreMountains.Tools.MMPropertyEmitter.Vector4Option

the selected axis on Vector4


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