Class VirtualCameraActor
The actor used to hold the parameters of a camera.
Implements
IPreviewable
Inherited Members
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: Unity.LiveCapture.VirtualCamera
Assembly: Unity.LiveCapture.VirtualCamera.dll
Syntax
[DisallowMultipleComponent]
[ExcludeFromPreset]
[AddComponentMenu("Live Capture/Virtual Camera/Virtual Camera Actor")]
[ExecuteAlways]
[RequireComponent(typeof(Animator))]
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 |
|---|---|
| float |
DepthOfFieldEnabled
Is depth of field enabled.
Declaration
public bool DepthOfFieldEnabled { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
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)
Declaration
public virtual void Register(IPropertyPreviewer previewer)
Parameters
| Type | Name | Description |
|---|---|---|
| IPropertyPreviewer | previewer |
Implements
IPreviewable