|
FAST SDK Coding Reference 1.0.5
|
A predefined tool for a 2-state toggle. More...
Public Attributes | |
| MarkerData | optionAMarker |
| Inspector, Code The tracking data for the marker used by state A. | |
| MarkerData | optionBMarker |
| Inspector, Code The tracking data for the marker used by state B. | |
| string | value |
| Inspector, Code Identifies the state of the toggle that is currently being tracked. | |
Public Attributes inherited from MarkerTool | |
| 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 | |
| string | optionA |
| Inspector The identifier to use for when state A is being tracked. | |
| TMP_Text | optionAIdText |
| Inspector UI TMP_Text to label the ID of the marker used by state A. | |
| Image | optionAPointImage |
| Inspector UI Image to visualize the position of the marker used by state A. | |
| TMP_Text | optionAValueText |
| Inspector UI TMP_Text to label the value of state A. | |
| string | optionB |
| Inspector The identifier to use for when state B is being tracked. | |
| TMP_Text | optionBIdText |
| Inspector UI TMP_Text to label the ID of the marker used by state B. | |
| Image | optionBPointImage |
| Inspector UI Image to visualize the position of the marker used by state B. | |
| TMP_Text | optionBValueText |
| Inspector UI TMP_Text to label the value of state B. | |
Additional Inherited Members | |
Public Member Functions inherited from MarkerTool | |
| void | OnToggleUI () |
| Toggles the visualization of this tool on/off. | |
Protected Member Functions inherited from MarkerTool | |
| void | DrawTool () |
| Override this function to implement the visualization of this tool. | |
Protected Attributes inherited from MarkerTool | |
| 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 2-state toggle.
The toggle is a physical switch with 2 states, A and B. A marker is placed in each state, such that only 1 mark is visible and tracked at a time.
Use the Marker Toggle Prefab to instantiate this tool with default attributes and assignments.
|
private |
Inspector
The identifier to use for when state A is being tracked.
|
private |
Inspector
UI TMP_Text to label the ID of the marker used by state A.
| MarkerData optionAMarker |
Inspector, Code
The tracking data for the marker used by state A.
|
private |
Inspector
UI Image to visualize the position of the marker used by state A.
|
private |
Inspector
UI TMP_Text to label the value of state A.
|
private |
Inspector
The identifier to use for when state B is being tracked.
|
private |
Inspector
UI TMP_Text to label the ID of the marker used by state B.
| MarkerData optionBMarker |
Inspector, Code
The tracking data for the marker used by state B.
|
private |
Inspector
UI Image to visualize the position of the marker used by state B.
|
private |
Inspector
UI TMP_Text to label the value of state B.
| string value |
Inspector, Code
Identifies the state of the toggle that is currently being tracked.