An anchor that helps stabilize a GameObjects position in the real world. More...
Public Member Functions | |
| 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. | |
| 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. | |
| void | UnconfigureAnchor () |
| Detaches the behaviour from an anchor. | |
Additional Inherited Members | |
Properties inherited from ObserverBehaviour | |
| int? | ID [get] |
| The runtime Id of the Observer. | |
| string | TargetName [get] |
| Name of the target of the Observer. | |
| TargetStatus | TargetStatus = TargetStatus.NotObserved [get] |
| Current status information of the target. | |
Events inherited from ObserverBehaviour | |
| Action< ObserverBehaviour > | OnBehaviourDestroyed |
| Triggered when this behaviour is destroyed. Can be used for script cleanup. | |
| Action< ObserverBehaviour, TargetStatus > | OnTargetStatusChanged |
| Triggered when the TargetStatus changes. | |
An anchor that helps stabilize a GameObjects position in the real world.
|
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 |
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 |
Detaches the behaviour from an anchor.