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

UI Image Resizer?

Discussion in 'UI Toolkit' started by shawndingo, Sep 27, 2019.

  1. shawndingo

    shawndingo

    Joined:
    Oct 4, 2018
    Posts:
    83
    I have looked everywhere and am completely stumped. Is there a way that I can add a scale border around a image element and have the user rescale the image at runtime?

    For example. I have an image background that is set in place. Then the user can add a another image, kind of like a emote or icon overlaying the background image. Like a meme. Then they can move it around and resize it.
     
  2. shawndingo

    shawndingo

    Joined:
    Oct 4, 2018
    Posts:
    83
    Edit: I want to me able to pan and scale a UI element. Either it be a text or image element. I want to be able to touch the image, move it around the screen and then scale it with either pinch and stretch method or by adding a border around it with a resize icon on the bottom right corner.
     
  3. uDamian

    uDamian

    Unity Technologies

    Joined:
    Dec 11, 2017
    Posts:
    1,231
  4. shawndingo

    shawndingo

    Joined:
    Oct 4, 2018
    Posts:
    83
    You are the man!