YSort.xml 817 B

1234567891011121314151617181920212223
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="YSort" inherits="Node2D" category="Core" version="3.1">
  3. <brief_description>
  4. Sort all child nodes based on their Y positions.
  5. </brief_description>
  6. <description>
  7. Sort all child nodes based on their Y positions. The child node must inherit from [CanvasItem] for it to be sorted. Nodes that have a higher Y position will be drawn later, so they will appear on top of nodes that have a lower Y position.
  8. </description>
  9. <tutorials>
  10. </tutorials>
  11. <demos>
  12. </demos>
  13. <methods>
  14. </methods>
  15. <members>
  16. <member name="sort_enabled" type="bool" setter="set_sort_enabled" getter="is_sort_enabled">
  17. If [code]true[/code], child nodes are sorted, otherwise sorting is disabled. Default: [code]true[/code].
  18. </member>
  19. </members>
  20. <constants>
  21. </constants>
  22. </class>