Skip to content

Ysort practical example needed #2286

Closed
godotengine/godot
#42282
@golddotasksquestions

Description

We need a practical example like this for the Ysort node in the docs. Without it, I would also assume Nodes would have the same behaviour OP assumes in his post. In fact I have struggled with this before and when I asked how to Ysort, people have recommended having all sorted nodes as children as of a tilemap. (which does not allow grouping either, so I did not understand the purpose of Ysort very well) So to avoid confusion and wrong advice, let's add this great example:

Node (main)
-> YSort (World)
   -> Player
   -> YSort (Environment)
      -> Rock
      -> Tree
   -> YSort (Enemies)
      -> Enemy1
      -> Enemy2

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions