Search Unity

GUI 2D texture popup window when game object is clicked

Discussion in 'Scripting' started by Sicklilmonky, May 7, 2011.

  1. Sicklilmonky

    Sicklilmonky

    Joined:
    Feb 15, 2011
    Posts:
    30
    I've been searching and searching and yes you guessed it even more searching trying to figure out a good way to make a 2D GUI texture window pop up when you click on a game object in an FPS shooter.

    What I'm trying to do is that when my player starts off he starts in a house where there are objects about the place that should be able to click on when the player is within range and in front of a game object, then click on that object and have an information window pop up.

    I made 2D PNG files in Photoshop that should serve as my 2D textures for the information GUI popup windows but I have no idea how to code it.

    I'm surprised that there is not something like this already set up as a pre-fab or built in code as you would think it's a popular enough game mechanism.

    Does anyone know how to do this in java preferably??