I have an issue with UICamera.fallThrough. I followed the same post as mentioned above and created a script called "GameEventHandler" with the following code in the Start () function:
Sorry, it is JS, instead of C#
// used for initialization
function Start ()
{
UICamera.fallThrough = this.gameObject;
}
1. The script is attached to the main camera of the scene, not the camera inside of UI Root.
2. I added the UICamera NGUI component to the main camera and changed the Event Mask to 'Nothing'. I left the Event Type as default 'UI'.
When I tried to run the game, I get an error message stating: Assets/Scripts/ScriptEventHandler.js(22,9): BCE0005: Unknown identifier: 'UICamera'.
I have no idea why I have received this message and have been trying to figure it out. It is one of a few questions I wish to find out so I can properly utilize NGUI. It seems creating menus and HUDs are conveniently easy, but with no programming knowledge I fear making 'said' menus and HUDs work will be a challenge. Thanks in advance for any advice...