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

Property binding lets you bind two fields or properties so that changing one will update the other. More...

Inheritance diagram for PropertyBinding:

Public Types

enum  UpdateCondition { UpdateCondition.OnStart, UpdateCondition.OnUpdate, UpdateCondition.OnLateUpdate, UpdateCondition.OnFixedUpdate }
 
enum  Direction { Direction.SourceUpdatesTarget, Direction.TargetUpdatesSource, Direction.BiDirectional }
 

Public Member Functions

void UpdateTarget ()
 Immediately update the bound data. More...
 

Public Attributes

PropertyReference source
 First property reference. More...
 
PropertyReference target
 Second property reference. More...
 
Direction direction = Direction.SourceUpdatesTarget
 Direction of updates. More...
 
UpdateCondition update = UpdateCondition.OnUpdate
 When the property update will occur. More...
 
bool editMode = true
 Whether the values will update while in edit mode. More...
 

Detailed Description

Property binding lets you bind two fields or properties so that changing one will update the other.

Member Enumeration Documentation

Enumerator
SourceUpdatesTarget 
TargetUpdatesSource 
BiDirectional 
Enumerator
OnStart 
OnUpdate 
OnLateUpdate 
OnFixedUpdate 

Member Function Documentation

void PropertyBinding.UpdateTarget ( )

Immediately update the bound data.

Member Data Documentation

Direction PropertyBinding.direction = Direction.SourceUpdatesTarget

Direction of updates.

bool PropertyBinding.editMode = true

Whether the values will update while in edit mode.

PropertyReference PropertyBinding.source

First property reference.

PropertyReference PropertyBinding.target

Second property reference.

UpdateCondition PropertyBinding.update = UpdateCondition.OnUpdate

When the property update will occur.


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