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

How to make a text box come up

Discussion in '2D' started by chrisb_01, Mar 21, 2020.

  1. chrisb_01

    chrisb_01

    Joined:
    Mar 21, 2020
    Posts:
    5
    Hello, so I'm kinda new to using unity and i just wanted to know how to make a text box pop up after a certain situation. In specific, I'm just trying to make an informative game where if i drag a game object onto another a certain text box will appear telling the information about the combination of those two game objects. Thanks :)
     
  2. Lo-renzo

    Lo-renzo

    Joined:
    Apr 8, 2018
    Posts:
    1,503
    First add TextMeshPro to your project if it's not there already:

    Top Bar >> Window >> PackageManager - then add TextMeshPro within the PackageManager window.

    Untitled - Copy.png
    Then go to Import TMP Examples and Extras. These examples should help you out a bunch, and there's also tutorials on YouTube for TextMeshPro if you get stuck!
     
  3. chrisb_01

    chrisb_01

    Joined:
    Mar 21, 2020
    Posts:
    5
    Thank you so much, ill look into it!