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

A class used to pick a property on a target object / component / scriptable object. More...

Inherited by MoreMountains.Tools.MMPropertyEmitter, and MoreMountains.Tools.MMPropertyReceiver.

Public Member Functions

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

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

Protected Attributes

MMProperty _targetMMProperty
bool _initialized = false
MMPropertyLink _propertySetter

Properties

virtual bool PropertyFound [get, protected set]
 whether or not this property has been found

Detailed Description

A class used to pick a property on a target object / component / scriptable object.

Member Function Documentation

◆ GetRawValue()

virtual object MoreMountains.Tools.MMPropertyPicker.GetRawValue ( )
virtual

Returns the raw value of the target property.

Returns

◆ Initialization()

virtual void MoreMountains.Tools.MMPropertyPicker.Initialization ( GameObject source)
virtual

When the property picker gets initialized, it grabs the stored property or field and initializes a MMProperty and MMPropertyLink.

Parameters
source

Member Data Documentation

◆ _initialized

bool MoreMountains.Tools.MMPropertyPicker._initialized = false
protected

◆ _propertySetter

MMPropertyLink MoreMountains.Tools.MMPropertyPicker._propertySetter
protected

◆ _targetMMProperty

MMProperty MoreMountains.Tools.MMPropertyPicker._targetMMProperty
protected

◆ TargetComponent

Component MoreMountains.Tools.MMPropertyPicker.TargetComponent

the component to look for a property on | storage only, not displayed in the inspector

◆ TargetObject

UnityEngine.Object MoreMountains.Tools.MMPropertyPicker.TargetObject

the target object to look for a property on

◆ TargetPropertyName

string MoreMountains.Tools.MMPropertyPicker.TargetPropertyName

the name of the property to link to

◆ TargetScriptableObject

ScriptableObject MoreMountains.Tools.MMPropertyPicker.TargetScriptableObject

the component to look for a property on | storage only, not displayed in the inspector

Property Documentation

◆ PropertyFound

virtual bool MoreMountains.Tools.MMPropertyPicker.PropertyFound
getprotected set

whether or not this property has been found


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