Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Health Bar System With UI

Discussion in 'UGUI & TextMesh Pro' started by EdgarCarrera, Sep 29, 2014.

  1. EdgarCarrera

    EdgarCarrera

    Joined:
    Apr 21, 2014
    Posts:
    255
    hello guys i want know how i can add sliced system with new ui system look my images

    upload_2014-9-29_10-55-57.png

    green image is the healthbar i need show ah bar for percent life.
     
  2. melkior

    melkior

    Joined:
    Jul 20, 2013
    Posts:
    199
    One of the tutorial video's for the new UI points out that using a slider component without the handlers on it works really well as you can send a number between 0 and 1 and it will fill that percent. That's what I'm using for my healthbar at the moment.
     
  3. EdgarCarrera

    EdgarCarrera

    Joined:
    Apr 21, 2014
    Posts:
    255
    what video?
     
  4. rakkarage

    rakkarage

    Joined:
    Feb 3, 2014
    Posts:
    683
    UI Slider - Unity Official Tutorials: