FAST SDK Coding Reference 1.0.3
|
A predefined tool for a slider. More...
Public Attributes | |
MarkerData | endMarker |
Inspector, Code The tracking data for the slider end reference marker. | |
MarkerData | knobMarker |
Inspector, Code The tracking data for the knob marker. | |
float | sliderLength |
Inspector, Code The X-coordinate distance from the reference marker to the knob marker when at the beginning of the slider. | |
MarkerData | startMarker |
Inspector, Code The tracking data for the slider start reference marker. | |
float | value |
Inspector, Code Identifies the slider position as normalized value in the range [0, 1]. | |
![]() | |
bool | isTracked |
Runtime Returns true when enough of the markers that compose the tool are tracked for the tool to function. | |
int[] | markerIds |
Inspector, Code The IDs of the markers to use for this tool. | |
Private Attributes | |
TMP_Text | endIdText |
Inspector UI TMP_Text to label the ID of the slider end reference marker. | |
Image | endPointImage |
Inspector UI Image to visualize the position of the slider end reference marker. | |
TMP_Text | knobIdText |
Inspector UI TMP_Text to label the ID of the knob marker. | |
Image | knobPointImage |
Inspector UI Image to visualize the position of the knob marker. | |
Image | slideAreaImage |
Inspector UI Image to visualize the track the knob slides along. | |
TMP_Text | startIdText |
Inspector UI TMP_Text to label the ID of the slider start reference marker. | |
Image | startPointImage |
Inspector UI Image to visualize the position of the slider start reference marker. | |
TMP_Text | valueText |
Inspector UI TMP_Text to label the FAST.MarkerSlider.value. | |
Additional Inherited Members | |
![]() | |
void | OnToggleUI () |
Toggles the visualization of this tool on/off. | |
![]() | |
void | DrawTool () |
Override this function to implement the visualization of this tool. | |
![]() | |
CanvasGroup | canvasGroup |
Inspector The CanvasGroup to control the visualization of this tool. | |
bool | isDrawTool |
Inspector Set to true if the tool should be visualized. | |
MarkerTrackingSystem | trackingSystem |
Inspector The FAST.MarkerTrackingSystem providing the marker data for this tool. | |
A predefined tool for a slider.
This is a physical slider with a knob that moves along a track. One marker is placed at the beginning of the slider track and another marker is placed at the end of the slider track. Both markers must be visible at some point to determine the slider track length, but after that only one of these reference markers needs to be visible while the slider is in use. A third marker is placed on the knob that slides on the track and must also always be visible.
Use the Marker Slider Prefab
to instantiate this tool with default attributes and assignments.
|
private |
Inspector
UI TMP_Text
to label the ID of the slider end reference marker.
MarkerData endMarker |
Inspector, Code
The tracking data for the slider end reference marker.
|
private |
Inspector
UI Image
to visualize the position of the slider end reference marker.
|
private |
Inspector
UI TMP_Text
to label the ID of the knob marker.
MarkerData knobMarker |
Inspector, Code
The tracking data for the knob marker.
|
private |
Inspector
UI Image
to visualize the position of the knob marker.
|
private |
Inspector
UI Image
to visualize the track the knob slides along.
float sliderLength |
Inspector, Code
The X-coordinate distance from the reference marker to the knob marker when at the beginning of the slider.
|
private |
Inspector
UI TMP_Text
to label the ID of the slider start reference marker.
MarkerData startMarker |
Inspector, Code
The tracking data for the slider start reference marker.
|
private |
Inspector
UI Image
to visualize the position of the slider start reference marker.
float value |
Inspector, Code
Identifies the slider position as normalized value in the range [0, 1].
|
private |
Inspector
UI TMP_Text
to label the FAST.MarkerSlider.value.