|
FAST SDK Coding Reference 1.0.5
|
A base class to define marker-based tools and interactions. More...
Public Member Functions | |
| void | OnToggleUI () |
| Toggles the visualization of this tool on/off. | |
Public Attributes | |
| 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. | |
Protected Member Functions | |
| void | DrawTool () |
| Override this function to implement the visualization of this tool. | |
Protected Attributes | |
| 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 base class to define marker-based tools and interactions.
Derive from this class to make your own custom marker-based tools and interactions, or use one of the 7 pre-defined tools.
|
abstractprotected |
Override this function to implement the visualization of this tool.
| void OnToggleUI | ( | ) |
Toggles the visualization of this tool on/off.
|
protected |
Inspector
The CanvasGroup to control the visualization of this tool.
This is primarily used to turn the visualization on/off, but you could also control the transparency using CanvasGroup.alpha.
|
protected |
Inspector
Set to true if the tool should be visualized.
| 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.
|
protected |
Inspector
The FAST.MarkerTrackingSystem providing the marker data for this tool.