Class FocusPlaneRenderer
A component that provides focus plane visualization.
Inherited Members
UnityEngine.Component.GetComponentInParent<T>(System.Boolean)
UnityEngine.Object.FindObjectsByType(System.Type, UnityEngine.FindObjectsSortMode)
UnityEngine.Object.FindObjectsByType(System.Type, UnityEngine.FindObjectsInactive, UnityEngine.FindObjectsSortMode)
UnityEngine.Object.FindObjectsByType<T>(UnityEngine.FindObjectsSortMode)
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectsByType<T>(UnityEngine.FindObjectsInactive, UnityEngine.FindObjectsSortMode)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
UnityEngine.Object.FindFirstObjectByType<T>()
UnityEngine.Object.FindAnyObjectByType<T>()
UnityEngine.Object.FindFirstObjectByType<T>(UnityEngine.FindObjectsInactive)
UnityEngine.Object.FindAnyObjectByType<T>(UnityEngine.FindObjectsInactive)
UnityEngine.Object.FindFirstObjectByType(System.Type)
UnityEngine.Object.FindAnyObjectByType(System.Type)
UnityEngine.Object.FindFirstObjectByType(System.Type, UnityEngine.FindObjectsInactive)
UnityEngine.Object.FindAnyObjectByType(System.Type, UnityEngine.FindObjectsInactive)
Namespace: Unity.LiveCapture.VirtualCamera
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(Single)
Sets the focus distance.
Declaration
public void SetFocusDistance(float value)
Parameters
| Type | Name | Description |
|---|---|---|
| Single | value | The focus distance |