Experimental: this API is experimental and might be changed or removed in the future.

BoundedPlane

struct in UnityEngine.Experimental.XR

매뉴얼로 전환

설명

Structure describing a bounded plane representing a real-world surface.

Unlike a Plane, which is infinite, a BoundedPlane has a size and a more detailed shape. A BoundedPlane can change from frame to frame (see XRPlaneSubsystem.PlaneUpdated). Typically, this means the current understanding of the plane has changed, rather than the real-world geometry. This can happen as the device explores the physical space and is able to perceive more detail.

변수

AlignmentThe alignment of the plane, e.g., horizontal or vertical.
CenterCenter point of the plane in device space.
HeightCurrent height of the plane.
IdA session-unique identifier for the plane.
NormalNormal vector of the plane in device space.
PlaneReturns the infinite Plane associated with this BoundedPlane.
PosePose of the plane in device space.
SizeCurrent size of the plane.
SubsumedByIdA session-unique identifier for the BoundedPlane that subsumed this plane.
WidthCurrent width of the plane.

Public 함수

GetCornersOutputs four points, in device space, representing the four corners of the plane. The corners are in clockwise order.
TryGetBoundaryTry to retrieve a list of positions in device space describing current plane boundary.
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961