Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

how do you clip an image with another?

Discussion in 'UGUI & TextMesh Pro' started by laurentlavigne, Aug 3, 2020.

  1. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    6,221
    I'm using slider as a progress bar but what I want is to clip the foreground image, not resize it, which slider does.
    upload_2020-8-2_21-18-25.png
    how do I do that?
     
  2. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    6,221
    solution:
    upload_2020-8-2_21-37-26.png
    fg anchor upper left corner
    upload_2020-8-2_21-37-35.png
    slider control clip
    upload_2020-8-2_21-37-46.png
    clip has mask with show graphic off
    upload_2020-8-2_21-37-57.png
     
    AquaAF and kukuhbr like this.