Highroad Engine v1.3
Public Member Functions | Static Public Attributes | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
MoreMountains.Tools.MMPropertyPickerDrawer Class Reference
Inheritance diagram for MoreMountains.Tools.MMPropertyPickerDrawer:
MoreMountains.Tools.MMPropertyEmitterDrawer MoreMountains.Tools.MMPropertyReceiverDrawer

Public Member Functions

override float GetPropertyHeight (SerializedProperty property, GUIContent label)
 Defines the height of the drawer More...
 
virtual float AdditionalHeight ()
 

Static Public Attributes

const string _undefinedComponentString = "<Undefined Component>"
 
const string _undefinedPropertyString = "<Undefined Property>"
 

Protected Member Functions

virtual void Initialization (SerializedProperty property)
 Initializes the dropdowns More...
 
virtual void FillAuthorizedTypes ()
 
virtual void DisplayAdditionalProperties (Rect position, SerializedProperty property, GUIContent label)
 
virtual void DrawLevelProgressBar (Rect position, float level, Color frontColor, Color negativeColor)
 
virtual void FillComponentsList (SerializedProperty property)
 Fills a list of all the components on the target object More...
 
virtual void FillPropertyList (SerializedProperty property)
 Fills a list of all properties and fields on the target component More...
 
virtual void SetTargetProperty (SerializedProperty property)
 Sets the target property More...
 
virtual void SetTargetComponent (SerializedProperty property)
 Sets the target component More...
 
virtual void GetComponentIndex (SerializedProperty property)
 Gets the component index More...
 
virtual void GetPropertyIndex (SerializedProperty property)
 Gets the property index More...
 
virtual Type GetPropertyType (SerializedProperty property)
 

Static Protected Member Functions

static bool AuthorizedType (Type[] typeArray, Type checkedType)
 

Protected Attributes

UnityEngine.Object _TargetObject
 
GameObject _TargetGameObject
 
int _selectedComponentIndex = 0
 
int _selectedPropertyIndex = 0
 
bool _initialized = false
 
string[] _componentNames
 
List< Component > _componentList
 
string[] _propertiesNames
 
List< string > _propertiesList
 
Type _propertyType = null
 
int _numberOfLines = 0
 
Color _progressBarBackground = new Color(0, 0, 0, 0.5f)
 
Type[] _authorizedTypes
 
bool _targetIsScriptableObject
 

Static Protected Attributes

const int _lineHeight = 20
 
const int _lineMargin = 2
 

Member Function Documentation

◆ AdditionalHeight()

virtual float MoreMountains.Tools.MMPropertyPickerDrawer.AdditionalHeight ( )
virtual

◆ AuthorizedType()

static bool MoreMountains.Tools.MMPropertyPickerDrawer.AuthorizedType ( Type[]  typeArray,
Type  checkedType 
)
staticprotected

◆ DisplayAdditionalProperties()

virtual void MoreMountains.Tools.MMPropertyPickerDrawer.DisplayAdditionalProperties ( Rect  position,
SerializedProperty  property,
GUIContent  label 
)
protectedvirtual

◆ DrawLevelProgressBar()

virtual void MoreMountains.Tools.MMPropertyPickerDrawer.DrawLevelProgressBar ( Rect  position,
float  level,
Color  frontColor,
Color  negativeColor 
)
protectedvirtual

◆ FillAuthorizedTypes()

virtual void MoreMountains.Tools.MMPropertyPickerDrawer.FillAuthorizedTypes ( )
protectedvirtual

◆ FillComponentsList()

virtual void MoreMountains.Tools.MMPropertyPickerDrawer.FillComponentsList ( SerializedProperty  property)
protectedvirtual

Fills a list of all the components on the target object

Parameters
property

◆ FillPropertyList()

virtual void MoreMountains.Tools.MMPropertyPickerDrawer.FillPropertyList ( SerializedProperty  property)
protectedvirtual

Fills a list of all properties and fields on the target component

Parameters
property

◆ GetComponentIndex()

virtual void MoreMountains.Tools.MMPropertyPickerDrawer.GetComponentIndex ( SerializedProperty  property)
protectedvirtual

Gets the component index

Parameters
property

◆ GetPropertyHeight()

override float MoreMountains.Tools.MMPropertyPickerDrawer.GetPropertyHeight ( SerializedProperty  property,
GUIContent  label 
)

Defines the height of the drawer

Parameters
property
label
Returns

◆ GetPropertyIndex()

virtual void MoreMountains.Tools.MMPropertyPickerDrawer.GetPropertyIndex ( SerializedProperty  property)
protectedvirtual

Gets the property index

Parameters
property

◆ GetPropertyType()

virtual Type MoreMountains.Tools.MMPropertyPickerDrawer.GetPropertyType ( SerializedProperty  property)
protectedvirtual

◆ Initialization()

virtual void MoreMountains.Tools.MMPropertyPickerDrawer.Initialization ( SerializedProperty  property)
protectedvirtual

Initializes the dropdowns

Parameters
property

◆ SetTargetComponent()

virtual void MoreMountains.Tools.MMPropertyPickerDrawer.SetTargetComponent ( SerializedProperty  property)
protectedvirtual

Sets the target component

Parameters
property

◆ SetTargetProperty()

virtual void MoreMountains.Tools.MMPropertyPickerDrawer.SetTargetProperty ( SerializedProperty  property)
protectedvirtual

Sets the target property

Parameters
property

Member Data Documentation

◆ _authorizedTypes

Type [] MoreMountains.Tools.MMPropertyPickerDrawer._authorizedTypes
protected

◆ _componentList

List<Component> MoreMountains.Tools.MMPropertyPickerDrawer._componentList
protected

◆ _componentNames

string [] MoreMountains.Tools.MMPropertyPickerDrawer._componentNames
protected

◆ _initialized

bool MoreMountains.Tools.MMPropertyPickerDrawer._initialized = false
protected

◆ _lineHeight

const int MoreMountains.Tools.MMPropertyPickerDrawer._lineHeight = 20
staticprotected

◆ _lineMargin

const int MoreMountains.Tools.MMPropertyPickerDrawer._lineMargin = 2
staticprotected

◆ _numberOfLines

int MoreMountains.Tools.MMPropertyPickerDrawer._numberOfLines = 0
protected

◆ _progressBarBackground

Color MoreMountains.Tools.MMPropertyPickerDrawer._progressBarBackground = new Color(0, 0, 0, 0.5f)
protected

◆ _propertiesList

List<string> MoreMountains.Tools.MMPropertyPickerDrawer._propertiesList
protected

◆ _propertiesNames

string [] MoreMountains.Tools.MMPropertyPickerDrawer._propertiesNames
protected

◆ _propertyType

Type MoreMountains.Tools.MMPropertyPickerDrawer._propertyType = null
protected

◆ _selectedComponentIndex

int MoreMountains.Tools.MMPropertyPickerDrawer._selectedComponentIndex = 0
protected

◆ _selectedPropertyIndex

int MoreMountains.Tools.MMPropertyPickerDrawer._selectedPropertyIndex = 0
protected

◆ _TargetGameObject

GameObject MoreMountains.Tools.MMPropertyPickerDrawer._TargetGameObject
protected

◆ _targetIsScriptableObject

bool MoreMountains.Tools.MMPropertyPickerDrawer._targetIsScriptableObject
protected

◆ _TargetObject

UnityEngine.Object MoreMountains.Tools.MMPropertyPickerDrawer._TargetObject
protected

◆ _undefinedComponentString

const string MoreMountains.Tools.MMPropertyPickerDrawer._undefinedComponentString = "<Undefined Component>"
static

◆ _undefinedPropertyString

const string MoreMountains.Tools.MMPropertyPickerDrawer._undefinedPropertyString = "<Undefined Property>"
static

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