This component provides convenience functionality for typical use cases of detecting a plane and showing a preview of where content would be placed on that plane. Can also be used to perform manual hit tests. More...
Public Member Functions | |
void | PerformHitTest (Vector2 screenPosition) |
Perform a manual hit test at the position in screen space. The OnInteractiveHitTest event is triggered if a hit test result is available. | |
Public Attributes | |
float | Height = 1.4f |
The assumed real world height of the camera in meters. | |
HitTestEvent | OnAutomaticHitTest |
Triggered on an automatic hit test. | |
HitTestEvent | OnInteractiveHitTest |
Triggered on an interactive hit test. | |
GameObject | PlaneIndicator |
The GameObject that is shown where a point on a plane is detected. | |
Properties | |
HitTestMode | HitTestMode [get, set] |
The currently set HitTestMode. | |
This component provides convenience functionality for typical use cases of detecting a plane and showing a preview of where content would be placed on that plane. Can also be used to perform manual hit tests.
|
inline |
Perform a manual hit test at the position in screen space. The OnInteractiveHitTest event is triggered if a hit test result is available.
screenPosition | Screen space position |
float Height = 1.4f |
The assumed real world height of the camera in meters.
HitTestEvent OnAutomaticHitTest |
Triggered on an automatic hit test.
HitTestEvent OnInteractiveHitTest |
Triggered on an interactive hit test.
GameObject PlaneIndicator |
The GameObject that is shown where a point on a plane is detected.
|
getset |
The currently set HitTestMode.