XRPlaneSubsystem
class in UnityEngine.Experimental.XR
/
Inherits from:IntegratedSubsystem
/
Implemented in:UnityEngine.XRModule
Description 描述
Provides methods, events, and properties that provides information about planes detected in the environment.
Properties 属性
| LastUpdatedFrame | The frame during which the planes were last updated. |
Public Methods 公共方法
| GetAllPlanes | Get all the BoundedPlanes currently tracked by the system. | ||
| TryGetPlane | Get a BoundedPlane by TrackableId | ||
| TryGetPlaneBoundary | Try to retrieve a list of positions in device space describing the current plane boundary. |
Events
| PlaneAdded | Raised for each BoundedPlane that has been added in the current frame. | ||
| PlaneRemoved | Raised for each BoundedPlane that has been removed in the current frame. | ||
| PlaneUpdated | Raised for each plane that has been updated in the current frame. |