Search Unity

  1. Unity 2019.1 is now released.
    Dismiss Notice

UI Slider Chop instead of Scale

Discussion in 'Unity UI (uGUI) & TextMesh Pro' started by BeforeTheLight, Oct 13, 2014.

  1. BeforeTheLight

    BeforeTheLight

    Joined:
    Jan 7, 2011
    Posts:
    158
    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
     
  2. rakkarage

    rakkarage

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

    BeforeTheLight

    Joined:
    Jan 7, 2011
    Posts:
    158
    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:
    2