Class VirtualCameraActor
The actor used to hold the parameters of a camera.
Inherited Members
Namespace: Unity.LiveCapture.VirtualCamera
Syntax
[DisallowMultipleComponent]
[ExcludeFromPreset]
[AddComponentMenu("Live Capture/Virtual Camera/Virtual Camera Actor")]
[ExecuteAlways]
[RequireComponent(typeof(Animator))]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.live-capture@3.0/manual/ref-component-virtual-camera-actor.html")]
public class VirtualCameraActor : MonoBehaviour, IPreviewable
Properties
Animator
The Animator component used by the device for playing takes on this actor.
Declaration
public Animator Animator { get; }
Property Value
Type | Description |
---|---|
Animator |
CameraBody
The CameraBody parameters of the actor.
Declaration
public CameraBody CameraBody { get; set; }
Property Value
Type | Description |
---|---|
CameraBody |
Remarks
The parameters will be used by a camera driver to configure the final camera component.
CropAspect
The aspect ratio of the crop mask.
Declaration
public float CropAspect { get; set; }
Property Value
Type | Description |
---|---|
Single |
DepthOfFieldEnabled
Is depth of field enabled.
Declaration
public bool DepthOfFieldEnabled { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Remarks
The camera driver will use this property to enable or disable depth of field for the camera.
Lens
The Lens parameters of the actor.
Declaration
public Lens Lens { get; set; }
Property Value
Type | Description |
---|---|
Lens |
Remarks
The parameters will be used by a camera driver to configure the final camera component.
LensIntrinsics
The LensIntrinsics parameters of the actor.
Declaration
public LensIntrinsics LensIntrinsics { get; set; }
Property Value
Type | Description |
---|---|
LensIntrinsics |
Remarks
The parameters will be used by a camera driver to configure the final camera component.
Methods
Register(IPropertyPreviewer)
The preview system calls this method before playing animations. Use the specified IPropertyPreviewer to register animated properties.
Declaration
public virtual void Register(IPropertyPreviewer previewer)
Parameters
Type | Name | Description |
---|---|---|
IPropertyPreviewer | previewer | The IPropertyPreviewer to register animated properties to. |