Playmaker Forum
PlayMaker News => General Discussion => Topic started by: Kothe on November 05, 2013, 12:31:26 PM
-
Hi
Maybe this has been discussed but I din´t find nothing about.
I would like to add sound when the mouse is over a Gui Button
maybe is so easy or there is an action to do it, can´t find it.
Thanks in advance
-
I'm working on the same problem if you are looking for a way to detect the mouse over part. Go to 3 State GUI Button topic if you are. If you are just wondering about the sound: First, tell me how you detected it. Second just hook that up to a play sound, and when it leaves, stop the sound.
-
Hi,
There is no easy way to know when a mouse is over a Unity GUI element unfortunatly.
I would recommand you don't use Unity GUI for this, maybe use a Gui Texture instead, or a proper 2d framework like Ngui or 2dToolkit, they will provide you with a lot more goodies and tools to trigger sounds and effect based on 2d UI elements interactions.
bye,
Jean
-
Hi.
I have seen the 3 states Discussion but it doesn´t work in fact.
The Mouse Over works as Mouse Enter, even if you set a Mouse Over Event
you must click the buttom to go to another satate. Seems it just works for
Game Objects.
NGui must be a solution.
Cheers!
-
Hi,
Yes, I would recommand it, either nGui or any other 2d framework you find on the asset store really ( double check it has some playmaker actions too, otherwise it will be difficult to bind the two on your own if you are not a scripting guy).
bye,
Jean