Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Unity UI Making a Panel Background with well rounded corners

Discussion in 'UGUI & TextMesh Pro' started by hedgeh0g, Jun 18, 2020.

  1. hedgeh0g

    hedgeh0g

    Joined:
    Jul 18, 2014
    Posts:
    102
    Hello,

    I'm trying to paint a Ui Panels with rounded corners instead of sharp ones. Similar to this:



    So, I took Photoshop and made a rectangle with rounded corners using the Rectangle tool -> saved as png -> imported as a sprite -> dragged over the panel as Sliced -> defined the corners in the Sprite Editor and I got nothing remotely similar:



    I got these stretched corners and I have no idea why. Any suggestion?

    Thanks in advance.
     
  2. MDJ9999

    MDJ9999

    Joined:
    Apr 2, 2016
    Posts:
    14
  3. hedgeh0g

    hedgeh0g

    Joined:
    Jul 18, 2014
    Posts:
    102
  4. anushagarimella

    anushagarimella

    Joined:
    Mar 29, 2022
    Posts:
    5
    @hedgeh0g I followed the tutorial and set it to 'full rect' but it's still not working for me.

    What did you do to fix it?
     
  5. dinozafr

    dinozafr

    Joined:
    Jun 16, 2015
    Posts:
    3
    upload_2023-1-11_18-35-46.png
    I use such sprite settings so that they stretch