Author Topic: Is this a bug? When a object overlay other one.  (Read 1762 times)

nugao

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 14
    • View Profile
Is this a bug? When a object overlay other one.
« on: October 16, 2013, 11:11:21 PM »
Hello, I get a trouble NGUI 3.0.2.

There's a gameobject A, it have only component BoxCollider, and its Children unactive. The other gameobject B is like A all children unactive. A and B in same level.

A's BoxCollider.pos.z == -0.01;
B's BoxCollider.pos.z == -0.02;

A and B are can click ,when a part of B overlay A, A is clicked and a child Sprite of A  is active, then the overlap part can't click to active B's  one child, the debug info last hit is still on A.

But first B is clicked and its a child is active, the overlap part is work all right.


I don't know how to fix it...I need some help.

nugao

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 14
    • View Profile
Re: Is this a bug? When a object overlay other one.
« Reply #1 on: October 16, 2013, 11:42:10 PM »
I found change depth to fix my trouble, but why ?

Can Depth affect Z value of BoxCollider ?

nugao

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 14
    • View Profile
Re: Is this a bug? When a object overlay other one.
« Reply #2 on: October 16, 2013, 11:47:17 PM »
Oh ,it's my fault.

I miss this:
"NEW: UICamera now has "world" and "UI" event types that affect how raycasts are processed."