This class serves both as an augmentation definition for a ModelTarget in the editor as well as a tracked ModelTarget result at runtime More...
Public Types | |
enum | GuideViewDisplayMode { NoGuideView, GuideView2D, GuideView3D } |
The different modes how Vuforia will provide guide view rendering: More... | |
Public Member Functions | |
int | GetActiveGuideViewIndex () |
Return the active Guide View index More... | |
string | GetActiveStateName () |
Get the active state name More... | |
IEnumerable< string > | GetAvailableStateNames () |
Get a collection of all available state names More... | |
Bounds | GetBoundingBox () |
Return the bounding box of the target (in 3D scene units). More... | |
GuideView | GetGuideView (int guideViewIndex) |
Return a Guide View with a given index More... | |
int | GetNumGuideViews () |
Query native for the number of guide views for the model target More... | |
Vector3 | GetSize () |
Return the size of this target in scene units More... | |
TrackingOptimization | GetTrackingOptimization () |
Get the tracking optimization More... | |
void | Reset () |
Reset tracking of this Model Target observer This will stop any ongoing tracking of this Model Target including extended tracking. The tracking will automatically restart if the target is recognized again. Only an activated target can be reset. More... | |
bool | SetActiveGuideViewIndex (int index) |
Set the index for an active GuideView for this ModelTarget More... | |
bool | SetActiveGuideViewName (string guideViewName) |
bool | SetActiveStateName (string stateName) |
Set the active state name More... | |
void | SetBoundingBox (Vector3 minBBox, Vector3 maxBBox) |
Set the Bounding Box (only in editor mode). More... | |
void | SetHeight (float height) |
Set the height (z-dimension) of the target in scene units. This will scale the target uniformly. More... | |
void | SetLength (float length) |
Set the length (x-dimension) of the target in scene units. This will scale the target uniformly. More... | |
bool | SetTrackingOptimization (TrackingOptimization mode) |
Set tracking optimization More... | |
void | SetWidth (float width) |
Set the width (y-dimension) of the target in scene units. This will scale the target uniformly. More... | |
Public Attributes | |
Texture2D | m2DGuideViewImage |
Material | m2DGuideViewMaterial |
Material | m3DGuideViewMaterial |
GameObject | m3DGuideViewModel |
![]() | |
int | ID => mObserver?.Id |
The runtime Id of the Observer More... | |
string | TargetName => mTrackableName |
Name of the target of the Observer More... | |
Properties | |
GuideViewDisplayMode | GuideViewMode [get, set] |
TrackingOptimization | TrackingOptimization [get, set] |
![]() | |
TargetStatus | TargetStatus [get] |
Current status information of the target More... | |
Additional Inherited Members | |
![]() | |
Action< ObserverBehaviour > | OnBehaviourDestroyed |
Triggered when this behaviour is destroyed. Can be used for script cleanup More... | |
Action< ObserverBehaviour, TargetStatus > | OnTargetStatusChanged |
Triggered when the TargetStatus changes More... | |
This class serves both as an augmentation definition for a ModelTarget in the editor as well as a tracked ModelTarget result at runtime
|
strong |
The different modes how Vuforia will provide guide view rendering:
Enumerator | |
---|---|
NoGuideView | Using camel-case for enum here, so that Unity automatically creates nice strings for in editor display e.g. "NoGuideView" becomes "No Guide View" |
GuideView2D | |
GuideView3D |
|
inline |
Return the active Guide View index
|
inline |
Get the active state name
|
inline |
Get a collection of all available state names
|
inline |
Return the bounding box of the target (in 3D scene units).
|
inline |
Return a Guide View with a given index
|
inline |
Query native for the number of guide views for the model target
|
inline |
Return the size of this target in scene units
|
inline |
Get the tracking optimization
|
inline |
Reset tracking of this Model Target observer This will stop any ongoing tracking of this Model Target including extended tracking. The tracking will automatically restart if the target is recognized again. Only an activated target can be reset.
|
inline |
Set the index for an active GuideView for this ModelTarget
|
inline |
|
inline |
Set the active state name
|
inline |
Set the Bounding Box (only in editor mode).
minBBox | bounding box min position |
maxBBox | bounding box max position |
|
inline |
Set the height (z-dimension) of the target in scene units. This will scale the target uniformly.
height | height value |
|
inline |
Set the length (x-dimension) of the target in scene units. This will scale the target uniformly.
length | length value |
|
inline |
Set tracking optimization
|
inline |
Set the width (y-dimension) of the target in scene units. This will scale the target uniformly.
width | width value |
Texture2D m2DGuideViewImage |
Material m2DGuideViewMaterial |
Material m3DGuideViewMaterial |
GameObject m3DGuideViewModel |
|
getset |