Component:Slider: Difference between revisions

From Resonite Wiki
Automated: update Fields
Automated: update Fields, Categories
Line 8: Line 8:
== Fields ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|EditModeOnly|Bool|
|BaseColor|ColorX|
|AllowSteal|Bool|
|ColorDrivers|{{RootFieldType|SyncList`1|[[Type:ColorDriver|ColorDriver]]}}|TypeAdv1=true|
|DropOnDisable|Bool|
|__legacy_NormalColor|ColorX|
|DontDrive|Bool|
|__legacy_HighlightColor|ColorX|
|AllowOnlyPhysicalGrab|Bool|
|__legacy_PressColor|ColorX|
|ActiveUserFilter|ActiveUserHandling|
|__legacy_DisabledColor|ColorX|
|CustomGrabCheck|{{RootFieldType|SyncDelegate`1|[[Type:GrabCheck|GrabCheck]]}}|TypeAdv6=true|
|__legacy_TintColorMode|ColorMode|
|_grabber|'''[[Component:Grabber|Grabber]]'''|TypeAdv7=true|
|__legacy_ColorDrive|{{RootFieldType|FieldDrive`1|[[Type:ColorX|ColorX]]}}|TypeAdv7=true|
|_holdSlot|Slot|
|IsPressed|Bool|
|_pos|{{RootFieldType|DriveRef`1|[[Type:Sync`1|Sync`1]]<[[Type:Float3|Float3]]>}}|TypeAdv9=true|
|IsHovering|Bool|
|_rot|{{RootFieldType|DriveRef`1|[[Type:Sync`1|Sync`1]]<[[Type:FloatQ|FloatQ]]>}}|TypeAdv10=true|
|Value|'''T'''|TypeAdv10=true|
|_scl|{{RootFieldType|DriveRef`1|[[Type:Sync`1|Sync`1]]<[[Type:Float3|Float3]]>}}|TypeAdv11=true|
|Min|'''T'''|TypeAdv11=true|
|__legacyActiveUserRootOnly|Bool|
|Max|'''T'''|TypeAdv12=true|
|GrabPriority|Int| {{Template:Grab Priority}}
|Integers|Bool|
|Rotatable|Bool|
|MaxIsExclusive|Bool|
|Scalable|Bool|
|Power|Float|
|Range|Float3|
|Clamp|Bool|
|Origin|Float3|
|VibrationThreshold|'''T'''|TypeAdv17=true|
|MinScale|Float3|
|SlideDirection|'''[[#Direction|Slider`1.Direction]]<T>'''|TypeAdv18=true|
|MaxScale|Float3|
|AnchorOffset|Float2|
|VibrationOffset|Float|
|HandleAnchorMinDrive|{{RootFieldType|FieldDrive`1|[[Type:Float2|Float2]]}}|TypeAdv20=true|
|VibrationPreset|VibratePreset|
|HandleAnchorMaxDrive|{{RootFieldType|FieldDrive`1|[[Type:Float2|Float2]]}}|TypeAdv21=true|
|SnapIncrement|Float|
|FillLineDrive|{{RootFieldType|FieldDrive`1|[[Type:Float2|Float2]]}}|TypeAdv22=true|
|SnapTime|Float|
|RequireLockInToInteract|Bool|
|SnapOnRelease|Bool|
|RequireInitialPress|Bool|
|SnapPositions|{{RootFieldType|SyncList`1|[[#SnapPosition|Slider.SnapPosition]]}}|TypeAdv25=true|
|posOffset|Float3|
|rotOffset|FloatQ|
|scaleReference|Float3|
|referenceParent|Slot|
}}
}}


Line 47: Line 42:


== See Also ==
== See Also ==
[[Category:Components{{#translation:}}|Slider]]
[[Category:Components{{#translation:}}|Slider`1]]
[[Category:Components:Transform:Interaction{{#translation:}}|Slider]]
[[Category:Components:UIX:Interaction{{#translation:}}|Slider`1]]
[[Category:Components With Nested Types{{#translation:}}|Slider]]
[[Category:Generic Components{{#translation:}}|Slider`1]]
[[Category:Components With Nested Enums{{#translation:}}|Slider`1]]
[[Category:ComponentStubs]]
[[Category:ComponentStubs]]

Revision as of 06:32, 17 March 2025

Component image 
Slider component as seen in the Scene Inspector

This article or section is a Stub. You can help the Resonite Wiki by expanding it.

If you need a 2D slider for UIX as an element, see the UIX Slider component.

Fields

Fields
Name Type Description
persistent Bool Determines whether or not this item will be saved to the server.
UpdateOrder Int Controls the order in which this component is updated.
Enabled Bool Controls whether or not this component is enabled. Some components stop their functionality when this field is disabled, but some don't.
BaseColor ColorX
ColorDrivers list of ColorDriver
__legacy_NormalColor ColorX
__legacy_HighlightColor ColorX
__legacy_PressColor ColorX
__legacy_DisabledColor ColorX
__legacy_TintColorMode ColorMode
__legacy_ColorDrive field drive of ColorX
IsPressed Bool
IsHovering Bool
Value T
Min T
Max T
Integers Bool
MaxIsExclusive Bool
Power Float
Clamp Bool
VibrationThreshold T
SlideDirection Slider`1.Direction<T>
AnchorOffset Float2
HandleAnchorMinDrive field drive of Float2
HandleAnchorMaxDrive field drive of Float2
FillLineDrive field drive of Float2
RequireLockInToInteract Bool
RequireInitialPress Bool

Usage

Examples

Slider - A useful alternative to Grabbable - by ProbablePrime:

See Also