AnimationPlayer child appears on top regardless of Z?

Godot Version

4.3 Stable

Question

I have an AnimationPlayer in 2D controlling text, scale, and modulate of a Label child. I can’t figure out why the label animation appears above everything else displayed. Changing its Z seems to have no effect, even into wildly negative numbers. Top Level is off. Y Sort is off. I’ve tried with and without a Material. Its parents don’t seem to affect it. It’s appearing overtop things with Z values 100 or more greater, many nodes later in the tree.

AnimationPlayer does not have a transform or z layering to it’s children can’t inherit a proper layer or transform. Try to reparent the node to another Node2D or Control type.

1 Like

Thanks! For some reason that advice gave me fresh eyes: there was a CanvasLayer interfering and I hadn’t considered its effect–ugh :sweat_smile: