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...
Classes | |
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... | |
Public Member Functions | |
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. | |
Public Attributes | |
float | DistanceToCamera = 0.5f |
The distance from the camera the preview Object will be shown. | |
GameObject | MidAirIndicator |
The GameObject to be shown as a preview at the anchor position. | |
AnchorPositionConfirmedEvent | OnAnchorPositionConfirmed |
Triggered when the Mid Air position has been confirmed. | |
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.
|
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.
screenPosition | The position to create the anchor in screen coordinates |
float DistanceToCamera = 0.5f |
The distance from the camera the preview Object will be shown.
GameObject MidAirIndicator |
The GameObject to be shown as a preview at the anchor position.
AnchorPositionConfirmedEvent OnAnchorPositionConfirmed |
Triggered when the Mid Air position has been confirmed.