Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


focusDistance

The focus distance of the lens. To use this property, enable UsePhysicalProperties.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public float focusDistance { get; set; }

Remarks

The focus distance of the lens. Certain Volume override components use this value the focus distance mode is set to Physical. Depth Of Field is one example.