This class is best used in combination with the AnchorInputListenerBehaviour and the ContentPositioningBehaviour as it provides sanitation of the input and forwards the result to the ContentPositioningBehaviour for mid-air anchor placement
More...
|
class | AnchorPositionConfirmedEvent |
| This event gets called once the anchor has been successfully created. The event's parameter is the transform of the anchor's GameObject More...
|
|
|
void | ConfirmAnchorPosition (Vector2 screenPosition) |
| Sends a request to create an anchor at the provided screen position. Upon successful creation, the OnAnchorPositionConfirmed event will be triggered with the transform of the anchor's GameObject as a parameter More...
|
|
This class is best used in combination with the AnchorInputListenerBehaviour and the ContentPositioningBehaviour as it provides sanitation of the input and forwards the result to the ContentPositioningBehaviour for mid-air anchor placement
◆ ConfirmAnchorPosition()
void ConfirmAnchorPosition |
( |
Vector2 |
screenPosition | ) |
|
|
inline |
Sends a request to create an anchor at the provided screen position. Upon successful creation, the OnAnchorPositionConfirmed event will be triggered with the transform of the anchor's GameObject as a parameter
- Parameters
-
screenPosition | The position to create the anchor in screen coordinates |
◆ DistanceToCamera
float DistanceToCamera = 0.5f |
The distance from the camera the preview Object will be shown
◆ MidAirIndicator
GameObject MidAirIndicator |
The GameObject to be shown as a preview at the anchor position
◆ OnAnchorPositionConfirmed
Triggered when the Mid Air position has been confirmed