A downloadable asset pack

Buy Now$9.99 USD or more

                                                                                                

A clean and lightweight tool
for generating hex-based layouts inside the Unity Editor.

Perfect for roguelikes, strategy games, dungeon crawlers, top-down exploration,
and any project using a hex grid.
Supports both randomized generation and shape-based layouts out of the box.

                                                                                                

Core Features

  • Random Walk Generation
    Deterministic or fully random, seed-based if needed.
  • Shape-Based Layouts
    Disk, Ring, TwoDisks+Corridor.
  • FlatTop and PointyTop Support
    Correct axial math for both orientations.
    (Prefab rotation is manual)
  • Editor Preview System
    Fast cached gizmo previews.
    Rebuild preview at any time.
  • Debug Mode (Play Mode)
    Step-by-step generation with adjustable delay.
  • Full Source Code
    Clean C# architecture, easy to extend.

                                                                                                

How to Use

  1. Add HexRoomGenerator.cs to any GameObject.

  2. Assign a hex prefab (Flat or Pointy) in the Visual section.

  3. Choose Generation Mode (Shapes or Randomized) in the Generation section.

  4. Use:
    • Build/Rebuild Preview
    • Clear Preview
    • Build/Rebuild Generation
    • Clear Generation
  5. (Optional) Enable Debug Mode to see hexes spawn one-by-one in Play Mode.

All generated hexes appear as children of your GameObject.

                                                                                                

Technical Notes

  • Orientation (Flat/Pointy) affects math, not sprite rotation.

  • Rotate your prefab manually if needed.

  • Hex visuals and hex math are fully decoupled.

  • Compatible with Unity 2021.3 or newer.

                                                                                                

Purchase

Buy Now$9.99 USD or more

In order to download this asset pack you must purchase it at or above the minimum price of $9.99 USD. You will get access to the following files:

HexagonalConstructor_v1.0.unitypackage 31 kB

Leave a comment

Log in with itch.io to leave a comment.