Author Topic: Panel depth vs widget depth vs camera depth  (Read 2805 times)

Tatanan

  • Jr. Member
  • **
  • Thank You
  • -Given: 11
  • -Receive: 0
  • Posts: 81
    • View Profile
    • Casual Arena
Panel depth vs widget depth vs camera depth
« on: February 17, 2015, 05:56:51 AM »
Hello.
Which depth is more important: Panel depth, widget depth or camera depth?
Example: 2 sprites. Sprite 1 with panel depth 0 and widget depth 10 and sprite 2 with panel depth 1 and widget depth 0. Which one is shown if both are on the same position?

Thank you.
Game developer on Casual Arena.

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: Panel depth vs widget depth vs camera depth
« Reply #1 on: February 17, 2015, 07:05:03 PM »
Camera Depth (layer) > Panel Depth > Widget Depth

Sprite 2 would be on top.

Tatanan

  • Jr. Member
  • **
  • Thank You
  • -Given: 11
  • -Receive: 0
  • Posts: 81
    • View Profile
    • Casual Arena
Re: Panel depth vs widget depth vs camera depth
« Reply #2 on: August 31, 2015, 03:40:28 AM »
And the layer?
Is it taken into account when sorting depth?
I mean, there's a value called Layer (Water, UI...) that you can change.
Is it relevant to the depth things are shown?
Game developer on Casual Arena.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Panel depth vs widget depth vs camera depth
« Reply #3 on: September 06, 2015, 04:52:52 PM »
No, it's not relevant.