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

Reference to a specific field or property that can be set via inspector. More...

Public Member Functions

 PropertyReference ()
 
 PropertyReference (Component target, string fieldName)
 
Type GetPropertyType ()
 Helper function that returns the property type. More...
 
override bool Equals (object obj)
 Equality operator. More...
 
override int GetHashCode ()
 Used in equality operators. More...
 
void Set (Component target, string methodName)
 Set the delegate callback using the target and method names. More...
 
void Clear ()
 Clear the event delegate. More...
 
void Reset ()
 Reset the cached references. More...
 
override string ToString ()
 Convert the delegate to its string representation. More...
 
object Get ()
 Retrieve the property's value. More...
 
bool Set (object value)
 Assign the bound property's value. More...
 

Static Public Member Functions

static string ToString (Component comp, string property)
 Convenience function that converts the specified component + property pair into its string representation. More...
 
static bool Convert (Type from, Type to)
 Whether we can convert one type to another for assignment purposes. More...
 
static bool Convert (object value, Type to)
 Whether we can convert one type to another for assignment purposes. More...
 
static bool Convert (ref object value, Type from, Type to)
 Whether we can convert one type to another for assignment purposes. More...
 

Properties

Component target [get, set]
 Event delegate's target object. More...
 
string name [get, set]
 Event delegate's method name. More...
 
bool isValid [get]
 Whether this delegate's values have been set. More...
 
bool isEnabled [get]
 Whether the target script is actually enabled. More...
 

Detailed Description

Reference to a specific field or property that can be set via inspector.

Constructor & Destructor Documentation

PropertyReference.PropertyReference ( )
PropertyReference.PropertyReference ( Component  target,
string  fieldName 
)

Member Function Documentation

void PropertyReference.Clear ( )

Clear the event delegate.

static bool PropertyReference.Convert ( Type  from,
Type  to 
)
static

Whether we can convert one type to another for assignment purposes.

static bool PropertyReference.Convert ( object  value,
Type  to 
)
static

Whether we can convert one type to another for assignment purposes.

static bool PropertyReference.Convert ( ref object  value,
Type  from,
Type  to 
)
static

Whether we can convert one type to another for assignment purposes.

override bool PropertyReference.Equals ( object  obj)

Equality operator.

object PropertyReference.Get ( )

Retrieve the property's value.

override int PropertyReference.GetHashCode ( )

Used in equality operators.

Type PropertyReference.GetPropertyType ( )

Helper function that returns the property type.

void PropertyReference.Reset ( )

Reset the cached references.

void PropertyReference.Set ( Component  target,
string  methodName 
)

Set the delegate callback using the target and method names.

bool PropertyReference.Set ( object  value)

Assign the bound property's value.

override string PropertyReference.ToString ( )

Convert the delegate to its string representation.

static string PropertyReference.ToString ( Component  comp,
string  property 
)
static

Convenience function that converts the specified component + property pair into its string representation.

Property Documentation

bool PropertyReference.isEnabled
get

Whether the target script is actually enabled.

bool PropertyReference.isValid
get

Whether this delegate's values have been set.

string PropertyReference.name
getset

Event delegate's method name.

Component PropertyReference.target
getset

Event delegate's target object.


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