FAST SDK Coding Reference 1.0.3
|
A predefined tool for a button. More...
Public Attributes | |
MarkerData | buttonPressMarker |
Inspector, Code The tracking data for the button press marker. | |
MarkerData | buttonReferenceMarker |
Inspector, Code The tracking data for the reference marker. | |
string | value |
Inspector, Code Identifies the state of the button as either up and pressed down . | |
![]() | |
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 | buttonPressIdText |
Inspector UI TMP_Text to label the ID of the button press marker. | |
Image | buttonPressImage |
Inspector UI Image to visualize the position of the button press marker. | |
TMP_Text | buttonReferenceIdText |
Inspector UI TMP_Text to label the ID of the reference marker. | |
Image | buttonReferencePointImage |
Inspector UI Image to visualize the position of the reference marker. | |
TMP_Text | buttonValueText |
Inspector UI TMP_Text to label the FAST.MarkerButton.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 button.
This is a physical button with 2 states, up
and pressed down
. One marker is placed on the button housing as reference for the button position and must always be visible. A second marker is placed on a mechanism that moves down button the button is pressed and up when released. The second marker is only visible in the up state and occluded in the down state.
Use the Marker Button Prefab
to instantiate this tool with default attributes and assignments.
|
private |
Inspector
UI TMP_Text
to label the ID of the button press marker.
|
private |
Inspector
UI Image
to visualize the position of the button press marker.
MarkerData buttonPressMarker |
Inspector, Code
The tracking data for the button press marker.
|
private |
Inspector
UI TMP_Text
to label the ID of the reference marker.
MarkerData buttonReferenceMarker |
Inspector, Code
The tracking data for the reference marker.
|
private |
Inspector
UI Image
to visualize the position of the reference marker.
|
private |
Inspector
UI TMP_Text
to label the FAST.MarkerButton.value.
string value |
Inspector, Code
Identifies the state of the button as either up
and pressed down
.