Class ARCameraManager
Manages the lifetime of the XRCameraSubsystem
. Add one of these to a Camera
in your scene
if you want camera texture and light estimation information to be available.
Inheritance
Implements
Inherited Members
Namespace: UnityEngine .XR.ARFoundation
Assembly: solution.dll
Syntax
[DefaultExecutionOrder(-2147483647)]
[DisallowMultipleComponent]
[RequireComponent(typeof(Camera))]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.xr.arfoundation@4.2/api/UnityEngine.XR.ARFoundation.ARCameraManager.html")]
public sealed class ARCameraManager : SubsystemLifecycleManager<XRCameraSubsystem, XRCameraSubsystemDescriptor, XRCameraSubsystem.Provider>, ISerializationCallbackReceiver
Properties
Name | Description |
---|---|
auto |
Get the current focus mode in use by the subsystem, or |
auto |
Get or set whether auto focus is requested. |
camera |
The material used in background rendering. |
current |
The current camera configuration. |
current |
The current camera facing direction. This should usually match requested |
current |
Get the current light estimation mode used by the subsystem, or |
focus |
Get or set the focus mode. This method is obsolete. The getter uses
auto |
light |
Get or set the light estimation mode. This method is obsolete. The getter
uses current |
permission |
Determines whether camera permission has been granted. |
requested |
Get or set the requested camera facing direction. |
requested |
Get or set the requested |
Methods
Name | Description |
---|---|
Get |
Get the camera configurations currently supported for the implementation. |
On |
Part of the ISerializationCallbackReceiver interface. Invoked after deserialization. |
On |
Part of the ISerializationCallbackReceiver interface. Invoked before serialization. |
On |
Callback before the subsystem is started (but after it is created). |
On |
Callback when the manager is disabled. |
Try |
Attempts to acquire the latest camera image. This provides direct access to the raw pixel data, as well as to utilities to convert to RGB and Grayscale formats. |
Try |
Tries to get camera intrinsics. Camera intrinsics refers to properties of a physical camera which might be useful when performing additional computer vision processing on the camera image. |
Try |
Attempts to acquire the latest camera image. This provides direct access to the raw pixel data, as well as
to utilities to convert to RGB and Grayscale formats. This method is deprecated. Use
Try |
Events
Name | Description |
---|---|
frame |
An event which fires each time a new camera frame is received. |