I am trying to access the static member of UICamera, UICamera.hoveredObject(). I have this code in a function:
if (UICamera.hoveredObject() == null)
{
// Do stuff while NGUI is not over a UI item
...
}
I get this error from Unity:
Assets/Code/PlayMaker and NGUI extras/ObjectPicker.cs(187,38): error CS1955: The member `UICamera.hoveredObject' cannot be used as method or delegate
NGUI is in the default location (Assets/NGUI). I don't want to put my code in with NGUI because the code is not specifically for NGUI (it works with other things too). What simple thing is it that I am not doing to get rid of the error? I use similar statics with no problem elsewhere, what is my mistake?