C# Класс Foundation.Databinding.BindingBase

Наследование: UnityEngine.MonoBehaviour, IBindingElement
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
BindingProxy UnityEngine.GameObject
DebugMode bool

Защищенные свойства (Protected)

Свойство Тип Описание
_infoCache BindingInfo[]

Открытые методы

Метод Описание
GetBindingInfos ( ) : BindingInfo[]

Returns binding listeners

Init ( ) : void

And setup logic here

Add Bindings

OnBindingMessage ( ObservableMessage m ) : void

Handle all change notification here

OnBindingRefresh ( ) : void

Защищенные методы

Метод Описание
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

Приватные методы

Метод Описание
DebugInfo ( ) : void
FindContext ( ) : void

Описание методов

BeforeModelChanged() защищенный Метод

Any cleanup logic goes here
protected BeforeModelChanged ( ) : void
Результат void

GetBindingInfos() публичный Метод

Returns binding listeners
public GetBindingInfos ( ) : BindingInfo[]
Результат BindingInfo[]

GetValue() защищенный Метод

helper. Calls the GetValue method on the Model
protected GetValue ( string memberName ) : object
memberName string
Результат object

GetValue() защищенный Метод

helper. Calls the GetValue method on the Model
protected GetValue ( string memberName, object argument ) : object
memberName string
argument object
Результат object

Init() публичный абстрактный Метод

And setup logic here
Add Bindings
public abstract Init ( ) : void
Результат void

OnApplicationQuit() защищенный Метод

Handles UnityEngine ApplicationQuit event
protected OnApplicationQuit ( ) : void
Результат void

OnBindingMessage() публичный Метод

Handle all change notification here
public OnBindingMessage ( ObservableMessage m ) : void
m ObservableMessage
Результат void

OnBindingRefresh() публичный Метод

public OnBindingRefresh ( ) : void
Результат void

OnDisable() защищенный Метод

release from _root
protected OnDisable ( ) : void
Результат void

OnEnable() защищенный Метод

find _root and bind
protected OnEnable ( ) : void
Результат void

OnModelChanged() защищенный Метод

Any setup logic for the model goes here
protected OnModelChanged ( ) : void
Результат void

SetValue() защищенный Метод

helper. Calls the SetValue method on the model
protected SetValue ( string memberName, object argument ) : void
memberName string
argument object
Результат void

Описание свойств

BindingProxy публичное свойство

For binding to another object within the ui hierarchy
For Master / Details situations.
public GameObject,UnityEngine BindingProxy
Результат UnityEngine.GameObject

DebugMode публичное свойство

Prints Debug messages. This can get spammy.
public bool DebugMode
Результат bool

_infoCache защищенное свойство

protected BindingInfo[] _infoCache
Результат BindingInfo[]