Author Topic: UIPanel OndrawGizmo bug (?)  (Read 8913 times)

k014

  • Guest
UIPanel OndrawGizmo bug (?)
« on: September 11, 2013, 01:19:39 PM »
Hello!

I have a problem with gizmos of UIPanel, I do not know if this is a bug or something Im not doing well, here's the repro steps

In a new scene...
NGUI > Create Sprite

this creates a gameobject named: "UI Root (2D)"
you can see a pink box showing the Panel boundaries

Select the Panel (the gameobject named "Panel")
Change Panel Layer to "Default" (was nothing)

The pink box dissapears and it wont appears again :(

i am using last version from Git repository

----------------------------------------------------------------
commit 43a11ef1e7e0d384bde62a3f5894fe8f1f85a6d6
Author: Michael Lyashenko <michaell@tasharen.com>
Date:   Mon Sep 9 21:26:24 2013 -0400

    Tiny optimization.
----------------------------------------------------------------

Thanks!, bye

-Joe

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIPanel OndrawGizmo bug (?)
« Reply #1 on: September 11, 2013, 04:52:27 PM »
If you can't see the "default" layer, you won't see gizmos either. Top-right corner of Unity, Layers drop-down.

Also, just adjusting the layer like that won't adjust your UICamera's Culling Mask. If the culling mask doesn't match, you won't see gizmos either.