Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Odometer for NGUI (now live on asset store!)

Discussion in 'Assets and Asset Store' started by casperjeff, Jun 27, 2014.

  1. casperjeff

    casperjeff

    Joined:
    Apr 13, 2013
    Posts:
    333
    https://www.assetstore.unity3d.com/en/#!/content/19211

    Add some polish and pizzazz to your game with an flexible and animated odometer.
    Count up distance traveled, enemies killed or even loot earned with this flexible add-on to NGUI.

    REQUIRES NGUI 3.5.5 or higher (when UIWrapContent was added).

    For most common uses (counter odometer with no ‘thousands’ separators or decimal signs), just drag provided Odometer into your UI Root and call either SetValue() or Increment() function(s) to have the widgit do it’s work!!

    Custom options include:

    .Color (foreground and background) options for the entire odometer and even digit-level overrides.
    .Rollover option to have odometer roll to all zeros when hitting max value - OR you can have odometer ‘stick’ at the max value.
    .Automatic scaling of all elements through a single checkbox and height setting.
    .Automatic re-sizing border/background
    .Ability to use custom font (true type only)
    .Ability to tweak ‘springiness’ of the number rotation to make it smooth or ‘springy’.
    .Ability to customize each digit element - so as to include comma or period separators or ensure that item doesn’t scroll (such as currency symbol).

    Demo video:


    -Web Player Demos -

    Generic Dynamically Generated Odometer
    https://googledrive.com/host/0B42_t04JD1sYNTJ1Z1lEVEZ1NXc/OdometerForNGUIDemo1.html
    Custom Digit Color Change
    https://googledrive.com/host/0B42_t04JD1sYNTJ1Z1lEVEZ1NXc/OdometerForNGUIDemo2.html
    European Currency Odometer 1
    https://googledrive.com/host/0B42_t04JD1sYNTJ1Z1lEVEZ1NXc/OdometerForNGUIDemo3.html
    European Currency Odometer 2
    https://googledrive.com/host/0B42_t04JD1sYNTJ1Z1lEVEZ1NXc/OdometerForNGUIDemo4.html
    Thousands Delimiter Odometer
    https://googledrive.com/host/0B42_t04JD1sYNTJ1Z1lEVEZ1NXc/OdometerForNGUIDemo5.html
    US Currency Odometer
    https://googledrive.com/host/0B42_t04JD1sYNTJ1Z1lEVEZ1NXc/OdometerForNGUIDemo6.html
    Screenshot2.png Screenshot3.png Screenshot4.png Screenshot5.png Screenshot8.png
     
    Last edited: Jul 7, 2014
  2. casperjeff

    casperjeff

    Joined:
    Apr 13, 2013
    Posts:
    333
  3. casperjeff

    casperjeff

    Joined:
    Apr 13, 2013
    Posts:
    333
    So far only request is to have ability to go 'backwards' -
     
  4. casperjeff

    casperjeff

    Joined:
    Apr 13, 2013
    Posts:
    333
    Price drop to $2
    Enjoy everyone!!!
     
  5. poofdragon

    poofdragon

    Joined:
    Aug 23, 2012
    Posts:
    36
    Hello, I just picked this up and I'm looking to convert it to uGUI under Unity 5 since I don't own nGUI. I'm not entirely familiar with the differences between nGUI and uGUI, and am having some compilation issues due to missing resources and changes in Unity since this was published.

    Is there any chance you can assist with the conversion? Or even better do an update to support uGUI as well as nGUI?

    Thanks!
     
  6. eco_bach

    eco_bach

    Joined:
    Jul 8, 2013
    Posts:
    1,601
    Hi Jeff. Great asset! I've had a request to remove leading zeroes so as the numbers increase to 10, the odometer increases in size from 1 to 2 digits, when it reaches 100, 3 digits, etc.

    Any chance this is possible?