DoFAutoFocus

Author : Frank Otto | http://fosion.de

Description
Simple Autofocus System, with linear Interpolation of the Focus Point.
 * Dependencies : Unity Pro Depth of Field (DoF) Image Effect

Usage
Drop DoFAutoFocus onto your Camera, be sure you have imported the ImageEffects. Adjust your DoF Settings. Script creates a new Gameobject "DoFFocusTarget" and asigns it to your DoF Image Effect. Enable interpolateFocus to use linear interpolation for the focus point. Switch Quality between NORMAL and HIGH changes the focus call from the FixedUpdate to the Update Function. Have Fun! --fosiOn a true vision 08:10, 16 May 2011 (PDT)