Class XRCameraSubsystem.Provider
Interface for providing camera functionality for the implementation.
Inherited Members
Namespace: UnityEngine.XR.ARSubsystems
Assembly: solution.dll
Syntax
public class XRCameraSubsystem.Provider : SubsystemProvider<XRCameraSubsystem>
Properties
Name | Description |
---|---|
autoFocusEnabled | Property to be implemented by the provider to get the current camera focus mode. |
autoFocusRequested | Property to be implemented by the provider to get or set the focus mode for the camera. |
cameraMaterial | Property to be implemented by the provder to get the material used by |
cpuImageApi | An instance of the XRCpuImage.Api used to operate on XRCpuImage objects. |
currentCamera | This property should get the actual camera facing direction. |
currentConfiguration | Property to be implemented by the provider to query or set the current camera configuration. |
currentLightEstimation | Property to be implemented by the provider to get the current light estimation mode in use. |
invertCulling |
|
permissionGranted | Property to be implemented by the provider to determine whether camera permission has been granted. |
requestedCamera | This property should get or set the requested camera facing direction, that is, the AnyCamera bits. |
requestedLightEstimation | Property to be implemented by the provider to get or set the light estimation mode. |
Methods
Name | Description |
---|---|
CreateCameraMaterial(string) | Create the camera material from the given camera shader name. |
Destroy() | Method to be implemented by the provider to destroy the camera for the subsystem. |
GetConfigurations(XRCameraConfiguration, Allocator) | Method to be implemented by the provider to query the supported camera configurations. |
GetMaterialKeywords(out List<string>, out List<string>) | Method to be implemented by the provider to get the enabled and disabled shader keywords for the material. |
GetTextureDescriptors(XRTextureDescriptor, Allocator) | Get the XRTextureDescriptors associated with the current XRCameraFrame. |
OnBeforeBackgroundRender(int) | Method to be implemented by the provider to handle any required platform-specific functionality immediately before rendering the camera background. This method will always be called on the render thread and should only be called by the code responsible for executing background rendering on mobile AR platforms. |
Start() | Method to be implemented by the provider to start the camera for the subsystem. |
Stop() | Method to be implemented by the provider to stop the camera for the subsystem. |
TryAcquireLatestCpuImage(out Cinfo) | Method to be implemented by the provider to query for the latest native camera image. |
TryGetFrame(XRCameraParams, out XRCameraFrame) | Method to be implemented by the provider to get the camera frame for the subsystem. |
TryGetIntrinsics(out XRCameraIntrinsics) | Method to be implemented by the provider to get the camera intrinisics information. |