Search Unity

[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: