XRExperienceSubsystem
class in UnityEngine.Experimental.XR
/
Inherits from:IntegratedSubsystem
/
Implemented in:UnityEngine.XRModule
Description 描述
Provides methods and properties that allow for querying information specific to the platform experience.
Properties 属性
| experienceType | Instance of XRExperienceSubsystem.ExperienceType that describes the experience the current session is running in. | ||
| trackingOrigin | Used to get the current XRExperienceSubsystem.TrackingOrigin that determines the origin of the current XR space. |
Public Methods 公共方法
| GetAllBoundaryPoints | If the current expereince is XRExperienceSubsystem.ExperienceType.Bounded, this will return the set of points that describe the bounded area the user can move within. For any other experience type this will return an empty list. |
Events
| BoundaryChanged | Event fired if a provider detects a boundary change. Clients subscribing to this event should call into XRExperienceSubsystem.GetAllBoundaryPoints to refresh their data. | ||
| ExperienceTypeChanged | Event fired if a provider detects a boundary change. Clients subscribing to this event should access XRExperienceSubsystem.experienceType to refresh their data. |