An anchor that helps stabilize a GameObjects position in the real world More...
Public Member Functions | |
void | ConfigureAnchor (string name, Vector3 position, Quaternion rotation) |
Creates a mid-air anchor using the transform of the pose (position/rotation) where it should be anchored. The behaviour is attached to that anchor. More... | |
void | ConfigureAnchor (string name, HitTestResult hitTestResult) |
Creates a plane anchor at the location of the hit test result. The behaviour is attached to that anchor. More... | |
void | UnconfigureAnchor () |
Detaches the behaviour from an anchor. More... | |
Additional Inherited Members | |
Public Attributes inherited from ObserverBehaviour | |
int | ID => mObserver?.Id |
The runtime Id of the Observer More... | |
string | TargetName => mTrackableName |
Name of the target of the Observer More... | |
Properties inherited from ObserverBehaviour | |
TargetStatus | TargetStatus [get] |
Current status information of the target More... | |
Events inherited from ObserverBehaviour | |
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... | |
An anchor that helps stabilize a GameObjects position in the real world
|
inline |
Creates a mid-air anchor using the transform of the pose (position/rotation) where it should be anchored. The behaviour is attached to that anchor.
name | The logical name of the anchor. This must be unique among all created anchors. |
position | The position at which the anchor will be created. |
rotation | The rotation of the anchor that will be created. |
|
inline |
Creates a plane anchor at the location of the hit test result. The behaviour is attached to that anchor.
name | The logical name of the anchor. This must be unique among all created anchors. |
hitTestResult | The HitTestResult containing the pose at which the anchor will be created on a plane. |
|
inline |
Detaches the behaviour from an anchor.