Ysort node working in editor, but not in-game.

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By callalee

So I’m trying to use the ysort functionality with objects in my world and my player. It’s working in my editor, but not in game. My player stays overlapping the pillar in-game. The following screenshots are not in-game, they are from the editor, dragging the pillar over the player.

Pillar above player.

Pillar below player.

My layer hierarchy, everything nested in a ysort node.

Can you reproduce this in a simple scene with no scripts?

Zylann | 2020-04-30 10:37

I just tried and yea it works fine in-game with two pillars in a solo scene. This is the only script being used rn besides a script that exclusively centers the window screen. It seems the Pillars have no problem being sorted with each other, but when the player is introduced it gets complicated.

script screenshot

callalee | 2020-04-30 18:08