ZigZagContainer's icon

ZigZagContainer 0.5 2D Tools 4.5 Community

Submitted by user cronodia; MIT; 2025-12-23

A custom Container suite for Godot 4.x that arranges children in an alternating "zig-zag" pattern.

Two flavors: the base node and one with built-in procedural animation and mouse-proximity scaling.

Features:
- Dynamic Tweening: All layout changes (resizing, adding children, toggling directions) are smoothly animated
- Proximity Interaction: The ZigZagContainerWithInteraction variant provides a "fisheye" (or bubble) effect, scaling elements organically as the mouse approaches.
- Scaling Intelligence: scale_to_fit ensures your UI never overflows the container boundaries by dynamically downscaling children while maintaining their aspect ratio.
- Two Layout Modes:
-Horizontal: Alternates children above and below the center line.
-Vertical: Alternates children left and right of the center line.


View files Download Submit an issue Recent Edits