Class Bindable<T>
Bindable that provides the ability to bind values in the Unity components.
Namespace: FastenUp.Runtime.Bindables
Assembly: cs.temp.dll.dll
Syntax
public sealed class Bindable<T> : BaseBindable<T>, IBindable<T>, IBindable
Type Parameters
Name | Description |
---|---|
T | Type of the value |
Constructors
Bindable(T)
Declaration
public Bindable(T value = null)
Parameters
Type | Name | Description |
---|---|---|
T | value |
Properties
Value
The value that will be bind to the Unity components.
Declaration
public override T Value { get; set; }
Property Value
Type | Description |
---|---|
T |
Overrides
FastenUp.Runtime.Bindables.BaseBindable<T>.Value
Methods
PostBind(IBinder<T>)
Declaration
protected override void PostBind(IBinder<T> binder)
Parameters
Type | Name | Description |
---|---|---|
IBinder<T> | binder |
Overrides
FastenUp.Runtime.Bindables.BaseBindable<T>.PostBind(FastenUp.Runtime.Binders.IBinder<T>)
PostUnbind(IBinder<T>)
Declaration
protected override void PostUnbind(IBinder<T> binder)
Parameters
Type | Name | Description |
---|---|---|
IBinder<T> | binder |
Overrides
FastenUp.Runtime.Bindables.BaseBindable<T>.PostUnbind(FastenUp.Runtime.Binders.IBinder<T>)
Events
OnValueChanged
The event that will be invoked when the value is changed.
Declaration
public event Action<T> OnValueChanged
Event Type
Type | Description |
---|---|
Action<T> |