Struct GestureTransformationUtility.Placement
Result of the function GetBestPlacementPosition(Vector3, Vector2, float, float, float, GestureTranslationMode, XROrigin, TrackableType, int) that indicates if a placement position was found and information about the placement position.
Inherited Members
Namespace: UnityEngine.XR.Interaction.Toolkit.AR
Assembly: Unity.XR.Interaction.Toolkit.dll
Syntax
public struct GestureTransformationUtility.Placement
Properties
hasHoveringPosition
true if this Placement has a valid hoveringPosition value, otherwise false.
Declaration
public bool hasHoveringPosition { readonly get; set; }
Property Value
Type | Description |
---|---|
bool |
See Also
hasPlacementPosition
true if this Placement has a valid placementPosition value, otherwise false.
Declaration
public bool hasPlacementPosition { readonly get; set; }
Property Value
Type | Description |
---|---|
bool |
See Also
hasPlane
true if this Placement has a placementPlane, otherwise false.
Declaration
public bool hasPlane { readonly get; set; }
Property Value
Type | Description |
---|---|
bool |
See Also
hoveringPosition
The position that the object should be displayed at before the placement has been confirmed.
Declaration
public Vector3 hoveringPosition { readonly get; set; }
Property Value
Type | Description |
---|---|
Vector3 |
See Also
placementPlane
The ARPlane that the object is being placed on.
Declaration
public ARPlane placementPlane { readonly get; set; }
Property Value
Type | Description |
---|---|
ARPlane |
See Also
placementPosition
The resulting position that the object should be placed at.
Declaration
public Vector3 placementPosition { readonly get; set; }
Property Value
Type | Description |
---|---|
Vector3 |
See Also
placementRotation
The resulting rotation that the object should have.
Declaration
public Quaternion placementRotation { readonly get; set; }
Property Value
Type | Description |
---|---|
Quaternion |
updatedGroundingPlaneHeight
The resulting starting height of the plane that the object is being placed along.
Declaration
public float updatedGroundingPlaneHeight { readonly get; set; }
Property Value
Type | Description |
---|---|
float |