Polygon2D
Create custom 2D shapes and collision polygons with vertex editing, UV mapping, and texturing.
2D
No shortcutAdvanced11 min readQuick Reference
Polygon2D
Godot EngineKeyboard Shortcut
N/A
Where to Find
Scene dock — Create New Node > Node2D category
Best Used For
- ▸Create 2D game elements and environments
- ▸Build parallax scrolling backgrounds
- ▸Design UI components and HUD elements
Advanced⏱ 1–2 hours to master
Key Settings
Add:Edit:UV:Color:
Polygon2D creates custom 2D shapes by defining vertices. Supports UV mapping for texture projection and can be used for complex 2D geometry, shadows, and visual effects.
Where to Find It
Found under Node2D in Create New Node dialog.
How to Use
- Add: Add Polygon2D, then click the Polygon property to edit vertices.
- Edit: Click and drag vertices in the viewport to shape the polygon.
- UV: Enable UV and set a texture for mapped shapes.
- Color: Use Vertex Color for gradient effects across the polygon.
Pro Tips
- Use Polygon2D for light occluder shapes and dynamic shadows.
- Combine multiple Polygon2D nodes for complex composite shapes.