s&
About
The Project
info
About s&box
map
Roadmap
monitoring
Metrics
Engine startup and usage numbers
Updates
newspaper
Latest News
jams
Workshop
Steam
open_in_new
Steam Workshop
Assets
view_in_ar
Models
texture
Materials
apparel
Clothing
Forum
Learn
Documentation
rocket_launch
Getting Started
docs
Documentation
api
API Reference
Resources
school
Tutorials
manage_search
Code Search
Get s&box
Sign in with Steam
Api
Classes
SliderControl
ScreenPosToValue
chevron_left
Classes
class
SliderControl
Constructors
functions
SliderControl
Properties
data_object
Fill
data_object
Max
data_object
Min
data_object
NumberFormat
data_object
OnValueChanged
data_object
ShowRange
data_object
ShowTextEntry
data_object
ShowValueTooltip
data_object
Step
data_object
SupportsMultiEdit
data_object
TickStep
data_object
Value
Methods
functions
OnDeleted
lock
OnMiddleClick
lock
OnMouseDown
lock
OnMouseMove
lock
OnMouseUp
functions
Rebuild
functions
ScreenPosToValue
functions
Tick
ScreenPosToValue
Convert a screen position to a value. The value is clamped, but not snapped.
method
float
ScreenPosToValue
(
Vector2
pos
)
Parameters
Name
Type
Description
pos
Vector2
Returns
Type
Description
float
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.