PlayMaker Help & Tips > PlayMaker Help

I need help Gui Button

(1/1)

AlphaTec:
I want to be invisible of gui button.But I cant do it.I selected normalized off if Gui button didnt work.I need help,please.There are examples in a 10 second video://www.youtube.com/watch?v=9wzknNJ6r2k

jeanfabre:
Hi,

 Simply create an empty gameobject, attach a collider and you will be able to receive mouse events. Or create a cube, and once placed properly, delete the meshRenderer component ( or disable it so that you can view it when you need to move it around visually)

bye,

 Jean

AlphaTec:
I tried you wrote this but I want to do the key Gui invisible.I failed.I want to work my gui buttons of the outside computers(telephones,flashplayer,suchlike...).I dont want press to mouse button only.

jeanfabre:
Hi,

 Not sure I follow, do you mean you want to trigger an action not just by mouse interaction?

if that's the case, simply create a layer of indirection.

 your action should be triggered using an event like "DO THIS ACTION":

one one side, your gui interface will receive the "MOUSE DOWN" and you simply forward that by sending a event "DO THIS ACTION".

then from any other fsm you can also trigger this action by sending this event "DO THIS ACTION", either via other ways of interaction of using an automated or following a logical set of steps in your game.

bye,

 Jean

Navigation

[0] Message Index

Go to full version