Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

[Unity UI] Keep Text in Image

Discussion in 'UGUI & TextMesh Pro' started by NelsonPRSousa, Dec 2, 2015.

  1. NelsonPRSousa

    NelsonPRSousa

    Joined:
    Jan 10, 2014
    Posts:
    43
    Hello community, nice to meet you,

    I am using Unity UI.

    I have an image and the image is always at left-top. Now I want to have text on this image.

    My Text component is a child of the image. However I can't always sync the image with the text. Can you help me?



    When I change resolution:



    How can I always have the text 'syncronized' with the image?

    Thank you for your help!
     
    Last edited: Dec 3, 2015
  2. Adam-Buckner

    Adam-Buckner

    Joined:
    Jun 27, 2007
    Posts:
    5,664
    Is the text a child of the image?
     
  3. NelsonPRSousa

    NelsonPRSousa

    Joined:
    Jan 10, 2014
    Posts:
    43
    Yes it is...

    Thank you for your reply.
     
  4. Adam-Buckner

    Adam-Buckner

    Joined:
    Jun 27, 2007
    Posts:
    5,664
    Are you starting out with the original artwork matching in scale and resolution? Or are you using the anchors to stretch the numbers to fit in the original position?
     
  5. NelsonPRSousa

    NelsonPRSousa

    Joined:
    Jan 10, 2014
    Posts:
    43
    I don't understood your question...

    This helps?
     

    Attached Files: