WindowsSceneUnderstandingObserver.TryFindCentermostPlacement Method

Definition

Finds best placement position in local space to the quad

public:
 virtual bool TryFindCentermostPlacement(int quadId, UnityEngine::Vector2 objExtents, [Runtime::InteropServices::Out] UnityEngine::Vector3 % placementPosOnQuad);
public bool TryFindCentermostPlacement (int quadId, UnityEngine.Vector2 objExtents, out UnityEngine.Vector3 placementPosOnQuad);
abstract member TryFindCentermostPlacement : int * UnityEngine.Vector2 * Vector3 -> bool
override this.TryFindCentermostPlacement : int * UnityEngine.Vector2 * Vector3 -> bool
Public Function TryFindCentermostPlacement (quadId As Integer, objExtents As Vector2, ByRef placementPosOnQuad As Vector3) As Boolean

Parameters

quadId
Int32

The id of quad that will be used for placement

objExtents
UnityEngine.Vector2

Total width and height of object to be placed in meters.

placementPosOnQuad
UnityEngine.Vector3

Base position on plane in local space.

Returns

Returns false if a centermost placement location cannot be found.

Implements

Applies to