Author Topic: NGUI in preview window  (Read 2526 times)

jrhee

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 2
  • Posts: 13
    • View Profile
NGUI in preview window
« on: June 26, 2017, 11:15:06 PM »
I'm seeing NGUI appear in my animation preview window!

It seems to occur specifically for NGUI objects at the origin. When I disable NGUI root, the objects no longer appear in the window.

Issue seems specific to NGUI- other objects (3d objects, Unity sprites/UI elements) at the origin don't appear.

Replicated with NGUI 3.11.4 on Unity 5.6 and 2017.1.0f1

Seems like this was raised a few years back
http://www.tasharen.com/forum/index.php?topic=5159.0

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI in preview window
« Reply #1 on: June 27, 2017, 11:52:29 AM »
What layer is your UI on? The only way it would appear there is if the preview model was on the same layer as you've chosen for NGUI.

jrhee

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 2
  • Posts: 13
    • View Profile
Re: NGUI in preview window
« Reply #2 on: June 27, 2017, 03:52:12 PM »
Most of it's on the UI layer (builtin layer 5), and the rest are on additional custom layers (24 and 25). NGUI elements on all three layers appear in the preview window.

The preview model is on the Default layer. The issue also occurs when previewing imported FBXs which have no layer.

Changing the layer of the UI root and all children doesn't seem to fix the issue. When I create non-NGUI objects on the UI layer under my UIRoot, they don't appear in the preview window.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI in preview window
« Reply #3 on: July 06, 2017, 05:32:14 AM »
Must be a Unity editor glitch then. I assume it's harmless aside from the UI being there?