Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - ransomink

Pages: [1]
1
NGUI 3 Support / Re: UICamera.fallThrough
« on: March 13, 2014, 05:33:27 PM »
Huzzah! I have found the answer. I had no knowledge that NGUI did not work with JavaScript/UnityScript by default so I wasn't looking for how to set it up. My apologies. However, at least we all can move on to more important matters...

For anyone else ignorant as I, check the FAQ on how to setup NGUI to work with UnityScript...

2
NGUI 3 Support / Re: UICamera.fallThrough
« on: March 13, 2014, 04:13:50 AM »
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#
  1. // used for initialization
  2. function Start ()
  3. {
  4.         UICamera.fallThrough = this.gameObject;
  5. }

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...

Pages: [1]