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

Image Fill not reflecting changes after reaching value 0

Discussion in 'UGUI & TextMesh Pro' started by XeOniFiCaTiOn, Sep 17, 2014.

  1. XeOniFiCaTiOn

    XeOniFiCaTiOn

    Joined:
    May 7, 2013
    Posts:
    17
    Hi Guys,
    Ive been messing around with the new GUI to make our prefabs and GUI lib for the designers at our studio. It looks like i came across a bug while paring a slider to change image fill value. The image updates very nicely until it reaches 0. After reaching 0 it does not update the fill on the scene view. But hierarchy shows the value changing flawlessly. ive just written a simple public function to do the same

    public void OnImageSliderChange(float value)
    {
    ForeGroundImage.fillAmount = value;
    }

    and this is assigned to theSliders OnValueChange Event in the inspector.

    Is this a known bug or is it something that i am doing wrong out here ?
    Regards
     
  2. Tim-C

    Tim-C

    Unity Technologies

    Joined:
    Feb 6, 2010
    Posts:
    2,181
    Are you using b17? this is fixed in b18 afaik.
     
    XeOniFiCaTiOn likes this.
  3. XeOniFiCaTiOn

    XeOniFiCaTiOn

    Joined:
    May 7, 2013
    Posts:
    17
    I guess I'm using b17. Thanks for the update. I'll make sure to get onto b18. Regards