Follow or pull focus camera effect

Is anyone aware of any script or asset that would allow follow or pull focus on a camera? I’ve searched but can’t seem to find any…

You simply need to write a simple script that links to the defocus component you have (Depth of Field Scatter, for instance), that updates the Focal Distance on every frame with something like…

focusThing.focalDistance = Vector3.Distance( transform.position, targetObject.position);

1 Like