Search Unity

UI Slider Chop instead of Scale

Discussion in 'UGUI & TextMesh Pro' started by BeforeTheLight, Oct 13, 2014.

  1. BeforeTheLight

    BeforeTheLight

    Joined:
    Jan 7, 2011
    Posts:
    168
    Hello,
    Back in NGUI there used to be a option(can't remember the name of it) to make the slider fill area chop off by fill amount vs. scale by the fill amount.
    1) Is there a similar feature in Unity UI?
    If so
    2) What is it called?

    My example is I have a game where the shape is not a rect it is a star and I would like to cut off the star to show a level of completion for each element rather scale and have the full star just shrink toward one side of the background.

    Hope this makes a little sense.

    Thank you for any help,
    George
     
    jltalbott likes this.
  2. rakkarage

    rakkarage

    Joined:
    Feb 3, 2014
    Posts:
    683
  3. BeforeTheLight

    BeforeTheLight

    Joined:
    Jan 7, 2011
    Posts:
    168
    Nice. For those who don't know like me this also works with a slider. Just change this setting on the fill image and you will get a chop instead of a scale with your sliders.

    Thanks rakkarage!
     
    Last edited: Oct 14, 2014
  4. zhool

    zhool

    Joined:
    Nov 28, 2016
    Posts:
    3