Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: jrhee on June 26, 2017, 11:15:06 PM

Title: NGUI in preview window
Post by: jrhee 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
Title: Re: NGUI in preview window
Post by: ArenMook 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.
Title: Re: NGUI in preview window
Post by: jrhee 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.
Title: Re: NGUI in preview window
Post by: ArenMook 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?