Class FocusPlaneRenderer
A component that provides focus plane visualization.
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
[ExecuteAlways]
[DisallowMultipleComponent]
[AddComponentMenu("Live Capture/Virtual Camera/Focus Plane Renderer")]
public class FocusPlaneRenderer : MonoBehaviour
Remarks
Each instance is tied to a specific camera.
Methods
SetCamera(Camera)
Sets the camera to use to render the focus plane.
Declaration
public void SetCamera(Camera camera)
Parameters
| Type | Name | Description |
|---|---|---|
| Camera | camera | The camera to set. |
SetFocusDistance(float)
Sets the focus distance.
Declaration
public void SetFocusDistance(float value)
Parameters
| Type | Name | Description |
|---|---|---|
| float | value | The focus distance |