playMaker

Author Topic: UICamera Hovered  (Read 2688 times)

MrAdventure

  • Playmaker Newbie
  • *
  • Posts: 24
UICamera Hovered
« 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.
« Last Edit: January 21, 2014, 04:12:32 PM by MrAdventure »

FRickReich

  • Playmaker Newbie
  • *
  • Posts: 21
Re: UICamera Hovered
« Reply #1 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
:(

MrAdventure

  • Playmaker Newbie
  • *
  • Posts: 24
Re: UICamera Hovered
« Reply #2 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

FRickReich

  • Playmaker Newbie
  • *
  • Posts: 21
Re: UICamera Hovered
« Reply #3 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?

MrAdventure

  • Playmaker Newbie
  • *
  • Posts: 24
Re: UICamera Hovered
« Reply #4 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.