Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: FRickReich on January 22, 2014, 05:42:20 PM

Title: Mousepick and GUI
Post by: FRickReich on January 22, 2014, 05:42:20 PM
I have a little problem that i thought you guys might be able to help me without alot of hassle...its like i am just missing a point here...

thing is that if i have a mouse pick in my scene and some gui objects on screen, and i click on a gui button, it actually takes the raycast informations from below the gui, wich is kind of annoying. i just wonder what i can do to keep the raycast from working beneath the GUI, layers dont seem to do the job.

- Rick.
Title: Re: Mousepick and GUI
Post by: parallel on January 22, 2014, 07:45:09 PM
Which GUI solution? unity's own or 3rd party
Title: Re: Mousepick and GUI
Post by: FRickReich on January 23, 2014, 05:20:48 AM
Unitys own, using GUILayout actions in playmaker.
Title: Re: Mousepick and GUI
Post by: jeanfabre on January 24, 2014, 06:22:19 AM
Hi,

 you can't unfortunatly apart from checking the result of the raycasting and ignore its process if you detect that's it's over a gui element.

 the other solution is to delay the raycasting and wait for your gui element to warn your system of a mouse or touch event in which case you would not fire the raycast at all.

bye,

 Jean