|Attention||Topic was automatically imported from the old Question2Answer platform.|
|Asked By||Bruno Ely|
When “Z As Relative” is checked on for a Node2D, its Z-Index is computed relatively to its parent’s. So if I have a scene tree like this
- NodeA: Z-Index = 2
- Node B: Z-Index = 3
Node B’s Z-Index is 2+3=5.
However, in a much more complicated tree, it might be a bit complex to compute that absolute Z-Index. Is there a built-in way to obtain that absolute value as the engine would calculate it?