FAST SDK Coding Reference 1.0.3
Loading...
Searching...
No Matches
MarkerObject Class Reference

A predefined tool for a tangible object. More...

Inheritance diagram for MarkerObject:
MarkerTool

Public Attributes

MarkerData[] objectMarkers = new MarkerData[1]
 Inspector, Code
The tracking data for the markers used by this tangible object.
 
int value
 Inspector, Code
Identifies this tangible object.
 
- 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

TMP_Text[] objectIdText = new TMP_Text[1]
 Inspector
UI TMP_Text to label the IDs of the markers used by this tangible object.
 
RectTransform objectLabelsTransform
 Inspector
The parent UI RectTransform that contains the label text for this tangible object.
 
TMP_Text objectNameText
 Inspector
UI TMP_Text to label the name of this tangible object based on the name of the GameObject this script is attached to.
 
Image[] objectPointImages = new Image[1]
 Inspector
UI Images to visualize the position of markers used by this tangible object.
 

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.
 

Detailed Description

A predefined tool for a tangible object.

A tangible object is a physical object that uses 1 or more markers to track the object's position and rotation.

Use the Marker Object Prefab to instantiate this tool with default attributes and assignments for 1 marker.

See also
UnityEngine.UI.Image
TMPro.TMP_Text
UnityEngine.RectTransform

Member Data Documentation

◆ objectIdText

TMP_Text [] objectIdText = new TMP_Text[1]
private

Inspector
UI TMP_Text to label the IDs of the markers used by this tangible object.

This will already be assigned if you use the Marker Object Prefab.

◆ objectLabelsTransform

RectTransform objectLabelsTransform
private

Inspector
The parent UI RectTransform that contains the label text for this tangible object.

This will already be assigned if you use the Marker Object Prefab.

◆ objectMarkers

MarkerData [] objectMarkers = new MarkerData[1]

Inspector, Code
The tracking data for the markers used by this tangible object.

◆ objectNameText

TMP_Text objectNameText
private

Inspector
UI TMP_Text to label the name of this tangible object based on the name of the GameObject this script is attached to.

This will already be assigned if you use the Marker Object Prefab.

◆ objectPointImages

Image [] objectPointImages = new Image[1]
private

Inspector
UI Images to visualize the position of markers used by this tangible object.

This will already be assigned if you use the Marker Object Prefab.

◆ value

int value

Inspector, Code
Identifies this tangible object.


The documentation for this class was generated from the following file: