NGUI: Next-Gen UI kit  3.7.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros
PropertyReferenceDrawer Class Reference

Generic property binding drawer. More...

Inheritance diagram for PropertyReferenceDrawer:

Classes

class  Entry
 

Public Member Functions

override float GetPropertyHeight (SerializedProperty prop, GUIContent label)
 The property is either going to be 16 or 34 pixels tall, depending on whether the target has been set or not. More...
 
override void OnGUI (Rect rect, SerializedProperty prop, GUIContent label)
 Draw the actual property. More...
 

Static Public Member Functions

static List< EntryGetProperties (GameObject target, bool read, bool write)
 Collect a list of usable properties and fields. More...
 
static string[] GetNames (List< Entry > list, string choice, out int index)
 Convert the specified list of delegate entries into a string array. More...
 

Static Public Attributes

static Type filter = typeof(void)
 If you want the property drawer to limit its selection list to values of specified type, set this to something other than 'void'. More...
 
static bool canConvert = true
 Whether it's possible to convert between basic types, such as int to string. More...
 
static bool mustRead = false
 Whether the property should be readable. Used to filter the property selection list. More...
 
static bool mustWrite = false
 Whether the property should be writable. Used to filter the property selection list. More...
 

Detailed Description

Generic property binding drawer.

Member Function Documentation

static string [] PropertyReferenceDrawer.GetNames ( List< Entry list,
string  choice,
out int  index 
)
static

Convert the specified list of delegate entries into a string array.

static List<Entry> PropertyReferenceDrawer.GetProperties ( GameObject  target,
bool  read,
bool  write 
)
static

Collect a list of usable properties and fields.

override float PropertyReferenceDrawer.GetPropertyHeight ( SerializedProperty  prop,
GUIContent  label 
)

The property is either going to be 16 or 34 pixels tall, depending on whether the target has been set or not.

override void PropertyReferenceDrawer.OnGUI ( Rect  rect,
SerializedProperty  prop,
GUIContent  label 
)

Draw the actual property.

Member Data Documentation

bool PropertyReferenceDrawer.canConvert = true
static

Whether it's possible to convert between basic types, such as int to string.

Type PropertyReferenceDrawer.filter = typeof(void)
static

If you want the property drawer to limit its selection list to values of specified type, set this to something other than 'void'.

bool PropertyReferenceDrawer.mustRead = false
static

Whether the property should be readable. Used to filter the property selection list.

bool PropertyReferenceDrawer.mustWrite = false
static

Whether the property should be writable. Used to filter the property selection list.


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