This class serves both as an augmentation definition for an ImageTarget in the editor as well as a tracked image target result at runtime More...
Public Member Functions | |
VirtualButtonBehaviour | CreateVirtualButton (string vbName, Vector2 position, Vector2 size) |
This method creates a Virtual Button and adds it to this Image Target as a direct child. More... | |
void | DestroyVirtualButton (string vbName) |
Destroys the virtual button with the given name. More... | |
Texture2D | GetRuntimeTargetTexture () |
Returns the texture that is assigned to this target during the authoring in the editor. More... | |
Vector2 | GetSize () |
Returns the size of this target in scene units More... | |
TrackingOptimization | GetTrackingOptimization () |
Get the tracking optimization More... | |
IEnumerable< VirtualButtonBehaviour > | GetVirtualButtonBehaviours () |
Returns the virtual button behaviours for this imageTargetBehaviour. More... | |
void | SetHeight (float height) |
Set the height (y-dimension) of the target in scene units. This will scale the target uniformly. The dataset of this target has to be deactivated before setting the size. More... | |
bool | SetTrackingOptimization (TrackingOptimization optimization) |
Set the tracking optimization More... | |
void | SetWidth (float width) |
Set the width (x-dimension) of the target in scene units. This will scale the target uniformly. The dataset of this target has to be deactivated before setting the size. More... | |
Static Public Member Functions | |
static VirtualButtonBehaviour | CreateVirtualButton (string vbName, Vector2 localScale, GameObject immediateParent) |
This methods adds the Virtual Button as a child of "immediateParent". Returns null if "immediateParent" is not an Image Target or a child of an Image Target. More... | |
Properties | |
ImageTargetType | ImageTargetType [get, set] |
Type of image target: can be a user created target or a static one from a dataset or cloud reco More... | |
![]() | |
TargetStatus | TargetStatus [get] |
Current status information of the target More... | |
Additional Inherited Members | |
![]() | |
int | ID => mObserver?.Id |
The runtime Id of the Observer More... | |
string | TargetName => mTrackableName |
Name of the target of the Observer More... | |
![]() | |
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 an ImageTarget in the editor as well as a tracked image target result at runtime
|
inline |
|
inlinestatic |
|
inline |
Destroys the virtual button with the given name.
|
inline |
Returns the texture that is assigned to this target during the authoring in the editor.
|
inline |
Returns the size of this target in scene units
|
inline |
Get the tracking optimization
|
inline |
Returns the virtual button behaviours for this imageTargetBehaviour.
|
inline |
Set the height (y-dimension) of the target in scene units. This will scale the target uniformly. The dataset of this target has to be deactivated before setting the size.
|
inline |
Set the tracking optimization
|
inline |
Set the width (x-dimension) of the target in scene units. This will scale the target uniformly. The dataset of this target has to be deactivated before setting the size.
|
getset |
Type of image target: can be a user created target or a static one from a dataset or cloud reco