Author Topic: Copy Panel From Another NGUI Scene  (Read 3040 times)

UraniumSlug

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 4
    • View Profile
Copy Panel From Another NGUI Scene
« on: August 31, 2014, 04:34:48 PM »
I've attempted to do a straight copy and paste of a panel and some contained widgets from another Unity Scene with NGUI. The clear flags and events are set to this layer which is assigned to this panel in my new scene, however roll over, click etc aren't working. What am I missing? Every button has an associated collider.
« Last Edit: September 01, 2014, 03:49:39 AM by UraniumSlug »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Copy Panel From Another NGUI Scene
« Reply #1 on: September 01, 2014, 12:12:20 PM »
I know you said layers are set, but double-check them, and make sure that the Raycast Hit Triggers is checked as mentioned in the FAQ. Turn on Debug on the UICamera to see what is intercepting events.

UraniumSlug

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 4
    • View Profile
Re: Copy Panel From Another NGUI Scene
« Reply #2 on: September 02, 2014, 02:42:45 PM »
Double checked the layers assigned to the GameObjects and the Event Mask on the Camera. Both are set to the UI layer I made. Raycast Hit Triggers is enabled, but debug doesn't output anything at all on the copied panel. The original works just fine.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Copy Panel From Another NGUI Scene
« Reply #3 on: September 03, 2014, 11:11:57 AM »
Make sure the UI event type matches. If you are using 2D colliders, the event mask should be 2D UI for example. Beyond that I don't know, and all I can suggest is check what else differs.

UraniumSlug

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 4
    • View Profile
Re: Copy Panel From Another NGUI Scene
« Reply #4 on: September 03, 2014, 12:52:28 PM »
I was using 2D UI instead of 3D UI. Thanks a lot for the tips!