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 More... | |||
Vector2 | GetSize () | ||
Returns the size of this target in scene units 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... | |||
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... | |||
Public Member Functions inherited from TrackableBehaviour | |||
virtual void | OnFrameIndexUpdate (int newFrameIndex) | ||
Is triggered by the StateManager after each render frame More... | |||
virtual void | OnTrackerUpdate (Status newStatus, StatusInfo newStatusInfo) | ||
Is triggered by the TrackerBehavior after it has updated. More... | |||
void | RegisterOnTrackableStatusChanged (Action< StatusChangeResult > onTrackableStatusChangedAction) | ||
Subscribe a method to be called when the Status of the TrackableBehaviour changes.
| |||
void | RegisterOnTrackableStatusInfoChanged (Action< StatusInfoChangeResult > onTrackableStatusChangedAction) | ||
Subscribe a method to be called when the StatusInfo of the TrackableBehaviour changes. More... | |||
bool | UnregisterOnTrackableStatusChanged (Action< StatusChangeResult > onTrackableStatusChangedAction) | ||
Unsubscribe a method from being called when the Status of the TrackableBehaviour changes More... | |||
void | UnregisterOnTrackableStatusInfoChanged (Action< StatusInfoChangeResult > onTrackableStatusChangedAction) | ||
Unsubscribe a method from being called when the StatusInfo of the TrackableBehaviour changes 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 | |
ImageTarget | ImageTarget [get] |
The image target that this ImageTargetBehaviour augments More... | |
Properties inherited from TrackableBehaviour | |
Status | CurrentStatus [get] |
The tracking status of the TrackableBehaviour More... | |
StatusInfo | CurrentStatusInfo [get] |
Information on the tracking status. Gives the primary reason about the problem with tracking (STATUS::NO_POSE or STATUS::LIMITED). More... | |
virtual Trackable | Trackable [get] |
The Trackable created at runtime that is augmented by this TrackableBehaviour More... | |
string | TrackableName [get] |
The name of the Trackable. More... | |
Properties inherited from WorldCenterTrackableBehaviour | |
Trackable | Trackable [get] |
The Trackable created at runtime that is augmented by this TrackableBehaviour More... | |
Additional Inherited Members | |
Public Types inherited from TrackableBehaviour | |
enum | Status { NO_POSE = 0, LIMITED = 1, DETECTED = 2, TRACKED = 3, EXTENDED_TRACKED = 4 } |
The tracking status of the TrackableBehaviour. More... | |
enum | StatusInfo { NORMAL = 0, UNKNOWN = 1, INITIALIZING = 2, RELOCALIZING = 3, EXCESSIVE_MOTION = 4, INSUFFICIENT_FEATURES = 5, INSUFFICIENT_LIGHT = 6, NO_DETECTION_RECOMMENDING_GUIDANCE = 7, WRONG_SCALE = 8 } |
Information on the tracking status. Gives the primary reason about the problem with tracking (STATUS::NO_POSE or STATUS::LIMITED). 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
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.
|
static |
void DestroyVirtualButton | ( | string | vbName | ) |
Destroys the virtual button with the given name.
Texture2D GetRuntimeTargetTexture | ( | ) |
Returns the texture that is assigned to this target
Vector2 GetSize | ( | ) |
Returns the size of this target in scene units
IEnumerable<VirtualButtonBehaviour> GetVirtualButtonBehaviours | ( | ) |
Returns the virtual button behaviours for this imageTargetBehaviour
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.
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.
The image target that this ImageTargetBehaviour augments