C# Class Foundation.Databinding.BindingBase

Inheritance: UnityEngine.MonoBehaviour, IBindingElement
ファイルを表示 Open project: NVentimiglia/Unity3d-Foundation Class Usage Examples

Public Properties

Property Type Description
BindingProxy UnityEngine.GameObject
DebugMode bool

Protected Properties

Property Type Description
_infoCache BindingInfo[]

Public Methods

Method Description
GetBindingInfos ( ) : BindingInfo[]

Returns binding listeners

Init ( ) : void

And setup logic here

Add Bindings

OnBindingMessage ( ObservableMessage m ) : void

Handle all change notification here

OnBindingRefresh ( ) : void

Protected Methods

Method Description
BeforeModelChanged ( ) : void

Any cleanup logic goes here

GetValue ( string memberName ) : object

helper. Calls the GetValue method on the Model

GetValue ( string memberName, object argument ) : object

helper. Calls the GetValue method on the Model

OnApplicationQuit ( ) : void

Handles UnityEngine ApplicationQuit event

OnDisable ( ) : void

release from _root

OnEnable ( ) : void

find _root and bind

OnModelChanged ( ) : void

Any setup logic for the model goes here

SetValue ( string memberName, object argument ) : void

helper. Calls the SetValue method on the model

Private Methods

Method Description
DebugInfo ( ) : void
FindContext ( ) : void

Method Details

BeforeModelChanged() protected method

Any cleanup logic goes here
protected BeforeModelChanged ( ) : void
return void

GetBindingInfos() public method

Returns binding listeners
public GetBindingInfos ( ) : BindingInfo[]
return BindingInfo[]

GetValue() protected method

helper. Calls the GetValue method on the Model
protected GetValue ( string memberName ) : object
memberName string
return object

GetValue() protected method

helper. Calls the GetValue method on the Model
protected GetValue ( string memberName, object argument ) : object
memberName string
argument object
return object

Init() public abstract method

And setup logic here
Add Bindings
public abstract Init ( ) : void
return void

OnApplicationQuit() protected method

Handles UnityEngine ApplicationQuit event
protected OnApplicationQuit ( ) : void
return void

OnBindingMessage() public method

Handle all change notification here
public OnBindingMessage ( ObservableMessage m ) : void
m ObservableMessage
return void

OnBindingRefresh() public method

public OnBindingRefresh ( ) : void
return void

OnDisable() protected method

release from _root
protected OnDisable ( ) : void
return void

OnEnable() protected method

find _root and bind
protected OnEnable ( ) : void
return void

OnModelChanged() protected method

Any setup logic for the model goes here
protected OnModelChanged ( ) : void
return void

SetValue() protected method

helper. Calls the SetValue method on the model
protected SetValue ( string memberName, object argument ) : void
memberName string
argument object
return void

Property Details

BindingProxy public_oe property

For binding to another object within the ui hierarchy
For Master / Details situations.
public GameObject,UnityEngine BindingProxy
return UnityEngine.GameObject

DebugMode public_oe property

Prints Debug messages. This can get spammy.
public bool DebugMode
return bool

_infoCache protected_oe property

protected BindingInfo[] _infoCache
return BindingInfo[]