Method GetPositionOnSlider
GetPositionOnSlider(float, Vector2)
Maps a light unit value onto the slider. Keeps in sync placement of markers and tooltips with the slider power. Override this in case of non-linear slider.
Declaration
protected virtual float GetPositionOnSlider(float value, Vector2 valueRange)
Parameters
Type | Name | Description |
---|---|---|
float | value | The value to get the position at |
Vector2 | valueRange | The ranges of the values |
Returns
Type | Description |
---|---|
float | The position |
GetPositionOnSlider(float)
Maps a light unit value onto the slider. Keeps in sync placement of markers and tooltips with the slider power. Override this in case of non-linear slider.
Declaration
protected virtual float GetPositionOnSlider(float value)
Parameters
Type | Name | Description |
---|---|---|
float | value | The value to get the position |
Returns
Type | Description |
---|---|
float | The position on the slider |