Class MetaOpenXRCameraSubsystem
The Meta-OpenXR implementation of the XRCameraSubsystem. Do not create this directly. Use the SubsystemManager instead.
Inheritance
MetaOpenXRCameraSubsystem
Implements
Inherited Members
SubsystemWithProvider<XRCameraSubsystem, XRCameraSubsystemDescriptor, XRCameraSubsystem.Provider>.subsystemDescriptor
Namespace: UnityEngine.XR.OpenXR.Features.Meta
Assembly: Unity.XR.MetaOpenXR.dll
Syntax
[Preserve]
public sealed class MetaOpenXRCameraSubsystem : XRCameraSubsystem, ISubsystem
Methods
OnStart()
Declaration
protected override void OnStart()
Overrides
UnityEngine.SubsystemsImplementation.SubsystemWithProvider<UnityEngine.XR.ARSubsystems.XRCameraSubsystem, UnityEngine.XR.ARSubsystems.XRCameraSubsystemDescriptor, UnityEngine.XR.ARSubsystems.XRCameraSubsystem.Provider>.OnStart()
OnStop()
Declaration
protected override void OnStop()
Overrides
UnityEngine.SubsystemsImplementation.SubsystemWithProvider<UnityEngine.XR.ARSubsystems.XRCameraSubsystem, UnityEngine.XR.ARSubsystems.XRCameraSubsystemDescriptor, UnityEngine.XR.ARSubsystems.XRCameraSubsystem.Provider>.OnStop()
ReleaseGpuImage(XRTextureDescriptor)
Releases a previously successfully acquired native texture descriptor.
Declaration
public void ReleaseGpuImage(XRTextureDescriptor descriptor)
Parameters
| Type | Name | Description |
|---|---|---|
| XRTextureDescriptor | descriptor | The texture descriptor that was returned by TryAcquireLatestGpuImage(out XRTextureDescriptor). |
TryAcquireLatestGpuImage(out XRTextureDescriptor)
Attempts to acquire the texture descriptor for a camera GPU image as a native texture.
Declaration
public bool TryAcquireLatestGpuImage(out XRTextureDescriptor descriptor)
Parameters
| Type | Name | Description |
|---|---|---|
| XRTextureDescriptor | descriptor | The descriptor to fill in with the texture information if successful. |
Returns
| Type | Description |
|---|---|
| bool | true if the method successfully acquires the native texture descriptor. Otherwise, false. |