Search Unity

  1. Improved Prefab workflow (includes Nested Prefabs!), 2D isometric Tilemap and more! Get the 2018.3 Beta now.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. Let us know a bit about your interests, and if you'd like to become more directly involved. Take our survey!
    Dismiss Notice
  4. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice
  5. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

UI Slider Chop instead of Scale

Discussion in 'Unity UI & 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:
    645
  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