Class FocusPlaneRenderer
A component that provides focus plane visualization.
Inherited Members
Namespace: Unity.LiveCapture .VirtualCamera
Assembly: Unity.LiveCapture.VirtualCamera.dll
Syntax
[ExecuteAlways]
[DisallowMultipleComponent]
[AddComponentMenu("Live Capture/Virtual Camera/Focus Plane Renderer")]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.live-capture@4.0/manual/ref-component-focus-plane-renderer.html")]
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 |