Playmaker Forum

PlayMaker Updates & Downloads => Share New Actions => Topic started by: MrAdventure on January 21, 2014, 03:15:50 PM

Title: UICamera Hovered
Post by: MrAdventure on January 21, 2014, 03:15:50 PM
This tests to see if the mouse is over an NGUI component, and lets you set a true and a false event. Handy to prevent raycasts from shooting through your button.
Title: Re: UICamera Hovered
Post by: FRickReich on January 22, 2014, 06:49:56 PM
this would actually be awesome to fix a little problem i have right now, but it doesnt work and gives out:

Code: [Select]
Assets/PlayMaker Custom Actions/Other/UICameraHovered.cs(26,21): error CS0103: The name `UICamera' does not exist in the current context
:(
Title: Re: UICamera Hovered
Post by: MrAdventure on January 22, 2014, 07:57:27 PM
Hi there,

Are you using NGUI? Your NGUI Camera should have UICamera script attached to it if it's a default setup.

Let me know,

Victor
Title: Re: UICamera Hovered
Post by: FRickReich on February 02, 2014, 04:49:21 PM
tried it with ngui and the camera and just cant seem to get it to work, might you do a tutorial on it?
Title: Re: UICamera Hovered
Post by: MrAdventure on February 12, 2014, 04:51:12 PM
I am not using NGUI anymore actually, I switched over to Daikon Forge and so don't have it installed anymore.

If you are still getting the same error, I would say make sure that you have a UICamera component on your GUI camera. If that's there, I don't know what else the problem could be.