CameraRelativeScale

Author: Hayden Scott-Baron (Dock)

Description
This script scales an object relative to a camera's distance. This gives the appearance of the object size being the same. Useful for GUI objects that appear within the game scene. Often useful when combined with CameraFacingBillboard.

Usage
Place this script on the gameobject you wish to keep a constant size.

Technical Discussion
This measures the distance from the Camera plane, rather than the camera itself, and uses the initial scale as a basis. Use the public objectScale variable to adjust the object size.