Blinking Text Entry Cursor

Author: Joseph Quigley (CPUFreak91)

Description
This script will allow you to display a blinking cursor (which can be any character, but I'm using an underline).

Usage
Assign this behavior to any GameObject. It was designed to work with the example in the Input String Example in the Unity docs, so you may want to move this code into your input-related scripts. Append the cursorChar variable to the end of your input string. Example: