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

XRPlaneSubsystem.GetAllPlanes

Switch to Manual
public void GetAllPlanes (List<BoundedPlane> planesOut);

Parameters

planesOut包含系统当前跟踪的所有平面的 BoundedPlane 列表。

Description

获取系统当前跟踪的所有 BoundedPlane

现有数据已替换为当前跟踪的平面的列表。为了避免过多的堆分配,开发者可以在每次调用时重复使用该列表。只有当列表的容量不足时才会重新分配。

如果 planesOut 为 null,此方法会抛出 /ArgumentNullException/。