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

Creating pop up text with script

Discussion in 'Scripting' started by Vanz, Oct 19, 2018.

  1. Vanz

    Vanz

    Joined:
    Nov 19, 2013
    Posts:
    374
    Would like to have some text pop up when two objects collide, would like the text to say 1 of 3 random things, what's a good way to accomplish this?

    Thanks,

    Vanz
     
  2. mholmes

    mholmes

    Joined:
    Dec 8, 2012
    Posts:
    414
    Try using a dialog
     
  3. Vanz

    Vanz

    Joined:
    Nov 19, 2013
    Posts:
    374
    scan you provide some c#?

    it would want to be placed at the same location of the object that got hit