Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: ART_Adventures on March 18, 2013, 06:35:13 AM
-
Hello People,
When using NGUI on the latest Unity 4.1, I notice that none of my objects can receive an OnMouseEnter event when a UICamera component is attached to the camera. If I remove the UICamera component from my camera, then I can receive OnMouseEnter.
Can anybody help regarding this.
-
UICamera removes it by setting eventMask to 0.
I seriously advise you to reconsider using OnMouseEnter. Replace it with OnHover that NGUI uses. OnMouseEnter is Unity's functionality that will be deprecated in Unity 4.3.
-
Thanks for the info. I was not aware that this feature was schedule to be deprecated. Just curious then, what will come to replace OnMouseEnter?
-
OnMouseEnterEvent() / OnMouseExitEvent(). They are a part of a unified event system that will replace the old functionality.