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

Unity UI UGUI Please add a new button.I often need to drag the corner icon to every corner of the image.

Discussion in 'UGUI & TextMesh Pro' started by jianhua928, Jul 18, 2019.

  1. jianhua928

    jianhua928

    Joined:
    Mar 14, 2019
    Posts:
    13
    As shown in the figure:
    I often need to drag the corner icon to every corner of the image.
    This operation is often used.
    Can the Unity team add a button instead?
    aa.png
     
  2. MSplitz-PsychoK

    MSplitz-PsychoK

    Joined:
    May 16, 2015
    Posts:
    1,278
    Those anchors are supposed to be relative to the parent object, not to the object itself. This allows that object to scale and position based on it's parent's shape and size. Your buttons will resize in an ugly way with those anchors if the parent object changes sizes, which often happens if you use a different-sized screen (like PC vs Mobile, or extra-wide monitors).

    What are you trying to accomplish by shaping the anchors like this? Maybe I can help.