Class SliderBinder
The two-way IBinder binds a value to the component with
Inherited Members
Namespace: FastenUp.Runtime.Binders.Behaviours
Assembly: cs.temp.dll.dll
Syntax
public sealed class SliderBinder : BaseBinder, IValueReceiver<int>, IValueProvider<int>, IBinder<int>, IValueReceiver<Vector2Int>, IBinder<Vector2Int>, IValueReceiver<float>, IValueProvider<float>, IBinder<float>, IValueReceiver<Vector2>, IBinder<Vector2>, IBinder
Methods
GetValue()
Gets the value from the binder.
Declaration
public float GetValue()
Returns
Type | Description |
---|---|
Single | The value that was provided by the binder. |
OnDisable()
Declaration
protected override void OnDisable()
Overrides
SetValue(Int32)
Sets the value to the binder.
Declaration
public void SetValue(int value)
Parameters
Type | Name | Description |
---|---|---|
Int32 | value |
SetValue(Single)
Sets the value to the binder.
Declaration
public void SetValue(float value)
Parameters
Type | Name | Description |
---|---|---|
Single | value |
SetValue(Vector2)
Sets the value to the binder.
Declaration
public void SetValue(Vector2 value)
Parameters
Type | Name | Description |
---|---|---|
Vector2 | value |
SetValue(Vector2Int)
Sets the value to the binder.
Declaration
public void SetValue(Vector2Int value)
Parameters
Type | Name | Description |
---|---|---|
Vector2Int | value |
Explicit Interface Implementations
IValueProvider<Int32>.GetValue()
Gets the value from the binder.
Declaration
int IValueProvider<int>.GetValue()
Returns
Type | Description |
---|---|
Int32 | The value that was provided by the binder. |