Struct GestureTransformationUtility.Placement
Result of the function GetBestPlacementPosition(Vector3, Vector2, Single, Single, Single, GestureTransformationUtility.GestureTranslationMode, XROrigin, TrackableType, Int32) that indicates if a placement position was found and information about the placement position.
Inherited Members
Namespace: UnityEngine.XR.Interaction.Toolkit.AR
Syntax
public struct 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 |
---|---|
Boolean |
See Also
HasHoveringPosition
true if this Placement has a valid hoveringPosition value, otherwise false.
Declaration
[Obsolete("HasHoveringPosition has been deprecated. Use hasHoveringPosition instead. (UnityUpgradable) -> hasHoveringPosition")]
public bool HasHoveringPosition { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
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 |
---|---|
Boolean |
See Also
HasPlacementPosition
true if this Placement has a valid placementPosition value, otherwise false.
Declaration
[Obsolete("HasPlacementPosition has been deprecated. Use hasPlacementPosition instead. (UnityUpgradable) -> hasPlacementPosition")]
public bool HasPlacementPosition { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
See Also
hasPlane
true if this Placement has a placementPlane, otherwise false.
Declaration
public bool hasPlane { readonly get; set; }
Property Value
Type | Description |
---|---|
Boolean |
See Also
HasPlane
true if this Placement has a placementPlane, otherwise false.
Declaration
[Obsolete("HasPlane has been deprecated. Use hasPlane instead. (UnityUpgradable) -> hasPlane")]
public bool HasPlane { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
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
HoveringPosition
The position that the object should be displayed at before the placement has been confirmed.
Declaration
[Obsolete("HoveringPosition has been deprecated. Use hoveringPosition instead. (UnityUpgradable) -> hoveringPosition")]
public Vector3 HoveringPosition { 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
PlacementPlane
The ARPlane that the object is being placed on.
Declaration
[Obsolete("PlacementPlane has been deprecated. Use placementPlane instead. (UnityUpgradable) -> placementPlane")]
public ARPlane PlacementPlane { 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
PlacementPosition
The resulting position that the object should be placed at.
Declaration
[Obsolete("PlacementPosition has been deprecated. Use placementPosition instead. (UnityUpgradable) -> placementPosition")]
public Vector3 PlacementPosition { 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 |
PlacementRotation
The resulting rotation that the object should have.
Declaration
[Obsolete("PlacementRotation has been deprecated. Use placementRotation instead. (UnityUpgradable) -> placementRotation")]
public Quaternion PlacementRotation { 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 |
---|---|
Single |
UpdatedGroundingPlaneHeight
The resulting starting height of the plane that the object is being placed along.
Declaration
[Obsolete("UpdatedGroundingPlaneHeight has been deprecated. Use updatedGroundingPlaneHeight instead. (UnityUpgradable) -> updatedGroundingPlaneHeight")]
public float UpdatedGroundingPlaneHeight { get; set; }
Property Value
Type | Description |
---|---|
Single |