Search Unity

Creating Tooltip (Text resizes background)

Discussion in 'UGUI & TextMesh Pro' started by rorakin3, Sep 1, 2014.

  1. rorakin3

    rorakin3

    Joined:
    Jan 2, 2013
    Posts:
    464
    Hey,

    I'm trying to make a tooltip where the width of the text resizes a background image behind the text. It doesn't seem possible from the editor. I don't mind doing it from code, however I am not sure how to get the dimensions of the text from code either.
     
  2. runevision

    runevision

    Joined:
    Nov 28, 2007
    Posts:
    1,892
    Please read the page in the manual bundled with beta 18 called "Making UI elements fit the size of their content".
     
  3. rorakin3

    rorakin3

    Joined:
    Jan 2, 2013
    Posts:
    464
    Oh sweet, I didn't realize there was a manual in the install, thanks!
     
    runevision likes this.