Class SUiElement<T, TData>
Inheritance
SUiElement<T, TData>
Namespace: SUI
Assembly: SonsSdk.dll
Syntax
public class SUiElement<T, TData> : SUiElement<T>
Type Parameters
Constructors
SUiElement(GameObject)
Declaration
public SUiElement(GameObject root)
Parameters
Type |
Name |
Description |
GameObject |
root |
|
Fields
Observable
Declaration
protected Observable<TData> Observable
Field Value
Methods
Bind(Observable<TData>)
Bind an observable to the element value
Declaration
public T Bind(Observable<TData> observable)
Parameters
Type |
Name |
Description |
Observable<TData> |
observable |
|
Returns
OnObservaleChanged(TData)
Declaration
protected virtual void OnObservaleChanged(TData value)
Parameters
Type |
Name |
Description |
TData |
value |
|
RegisterObservable(Observable<TData>)
Declaration
protected virtual void RegisterObservable(Observable<TData> observable)
Parameters
Type |
Name |
Description |
Observable<TData> |
observable |
|
Unbind()
Unbind the current observable from the element value
Declaration
Returns
UnregisterObservable(Observable<TData>)
Declaration
protected virtual void UnregisterObservable(Observable<TData> observable)
Parameters
Type |
Name |
Description |
Observable<TData> |
observable |
|