Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Bonwhis on March 06, 2013, 10:00:33 AM

Title: popup menu appearing over objects...
Post by: Bonwhis on March 06, 2013, 10:00:33 AM
Hello there...

I have a question regarding a popup menu that I would like to appear over an object when pressed. So far I've tried to display the menu by having the buttons (GUI textures) parented to an empty game object and have it called to the location when the button is pressed, however the GUI-textures are not placed correctly at all.

I have been trying to look at the rect variable type but so far I haven't been able to crack it.

Any ideas on what could be done or examples of popup menus appearing over game objects?

In earlier attempts I tried using the GUI-layout but for various reasons I don't want to use GUI-layout elements.

Thank you in advance

-Fred
Title: Re: popup menu appearing over objects...
Post by: greg on March 11, 2013, 07:36:04 AM
Not sure why GUI elements wont work for you, but you can read this:

http://docs.unity3d.com/Documentation/Components/class-Camera.html

the part about "depth only", so you can have a seperate camera that follows the main camera, and have it only render your GUI elements, and render them first.