All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Modules Pages
Loading...
Searching...
No Matches
MidAirPositionerBehaviour Class Reference

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...

Inheritance diagram for MidAirPositionerBehaviour:
SmartTerrainBehaviour VuforiaMonoBehaviour

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.
 

Detailed Description

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.

Member Function Documentation

◆ 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
screenPositionThe position to create the anchor in screen coordinates

Member Data Documentation

◆ 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

AnchorPositionConfirmedEvent OnAnchorPositionConfirmed

Triggered when the Mid Air position has been confirmed.