Author Topic: New child and depth problem ?  (Read 11143 times)

Tester1234

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 10
    • View Profile
New child and depth problem ?
« on: January 25, 2017, 10:41:23 AM »
Ok, I do experince a depth problem, I will explain the problem;

I have panel and grid, and I have 15 items created from a ui prefab and added to grid ( each item has main gameobject with UIWidget and UI sprite as child ), this ui prefab has depth of 1000. I have also little win animation a UISprite just come over this grid of items, this UISprite has depth of 2000, however because grid items created in game play, my animation sprite with depth of 2000 still shows under this grid items with depth of 1000.

How can resolve this problem ? If I create child widgets and add to grid in game play, depth has no meaning any more ?

Regards

Holy Manfred

  • Jr. Member
  • **
  • Thank You
  • -Given: 1
  • -Receive: 8
  • Posts: 71
    • View Profile
Re: New child and depth problem ?
« Reply #1 on: January 25, 2017, 12:38:36 PM »
Are you sure you the animated sprite you add is added to the correct panel?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: New child and depth problem ?
« Reply #2 on: January 25, 2017, 02:36:38 PM »
As Holy Manfred said, check what panel they are being drawn by.

Camera depth > Panel depth > Widget depth.

Tester1234

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 10
    • View Profile
Re: New child and depth problem ?
« Reply #3 on: January 26, 2017, 03:32:30 AM »
Thank you people. Yes, my animation was in a different panel, I solved the problem.