Legacy Auto Focus

Provides functionality for automatically changing the LeiaCamera’s convergence distance.‌


Attach LeiaAutoFocus.cs script to your Leia Camera‌


  • Focus Speed - How quickly the convergence distance will move to target
  • Focus Offset - Delta space between target and convergence distance
  • Tracking Mode
    • Target - Follow a specific game Object
    • Look at Target - Rotate the camera to face the target
  • Raycast - Returns the first object found along a specific layer in front of the camera. More details on Raycasts can be found in Unity's documentation