Search Unity

Mechanical Counter (Odometer) GUI script

Discussion in 'Assets and Asset Store' started by hencz, May 10, 2011.

  1. hencz

    hencz

    Joined:
    Aug 19, 2010
    Posts:
    86
    Hi everyone
    I'd like to introduce my counter script:

    Low draw call mechanical counter (odometer) GUI script. (One Material per Font)
    Can be used to display scores or lives on the HUD.

    Instructions:

    -Make a Bitmap Font, with a Bitmap Font Generator of your desired font.

    -Create an Empty GameObject and attach Counter.cs script to it.

    -A MeshFilter and a MeshRenderer will be added to the GameObject, set the material.

    -Right-Click the attached Counter script and select Build Character Map from the context menu.

    -Put your generated font to the Font Texture slot, and the Font Definition file (.fnt - rename it to .txt for unity) to the Font Definition slot.

    -Hit Build.

    -Use the Counter.Value non-static property in your script to set the desired value.


    Website
    Preview Demo


    Thanks
    Tibor Hencz
     
    Last edited: May 10, 2011