Skip to main content
GameDev.net gamedev.net
Developer Blog

This is a developer's personal perspective or experience. Views expressed are those of the author.

PRO Tired of ads? Read GameDev.net ad-free and help keep the community independent with GameDev Pro — $3/month.

Catlike Coding Unity
Catlike Coding Unity Blog
· 2 days, 4 hours ago

Hex Map 5.6 Create Climate Burst Job

Briefing

Catlike Coding Unity is walking through a deeper Burst conversion for Hex Map, this time moving CreateClimateJob off HexGrid and onto native data structures that Burst can actually use. The job now reads cell state from a NativeArray, while the generator copies data back and forth so the earlier land-generation steps can keep mutating the same cells before climate runs.

The bigger structural change is a new HexMapInfo helper that replaces the grid dependency for neighbor lookup and map bounds. It stores map size and wrap size, exposes TryGetCellIndex and TryGetNeighborCellIndex, and lets the climate job resolve neighbors without touching the managed grid class. That keeps the simulation logic compatible with Burst while preserving the same wrapping behavior.

HexCoordinates also gets a Burst-friendly rewrite: the old separate x and z fields are replaced with a single int2, with constructors and Step overloads updated to avoid relying on the static wrap size field. The code keeps the non-Burst path intact, but the new constructor and offset-coordinate helpers make the math cleaner and more job-friendly.

For developers working on procedural generation or large grid simulations, the practical takeaway is the same one Burst always brings: you often have to separate data access, coordinate math, and engine-facing helpers before the compiler can help you. The tutorial keeps the implementation incremental so each step still produces the same map, which is a useful pattern when refactoring gameplay systems for jobs.

At a glance
what
CreateClimateJob is being converted into a true Burst job using NativeArray-backed cell data.
who
Catlike Coding Unity is documenting the Hex Map 5.6 tutorial update for Unity 6000.3.23f1.
when
The tutorial follows Hex Map 5.5.0 and targets Unity 6000.3.23f1.
impact
Developers get a pattern for making procedural hex-grid simulation Burst-compatible without changing results.
Signal Neutral

Technical refactor with clear workflow benefits

Discuss

Follow Unity updates

See relevant stories in your personalized news feed.

Sign in to follow

Continue on GameDev.net

Useful next steps related to this story.

Game development news without the noise

One useful weekly briefing. No daily flood.

Sending your confirmation email…

Discussion

Loading comments...

Recommended resources

Game Engines

See full guide
Unreal Engine 5 Best Practices cover
Editor pick

Unreal Engine 5 Best Practices

Amazon · Book

Written by multi-award-winning Unreal generalist Tyson J. Butler-Boschma, Founder and Creative Director of Toybox Games Studios, this book addresses common challenges you face when advancing your expertise in lighting, environment design, and cinematic storytelling.

GameDev.net may earn a commission if you purchase through these links. This helps fund the site at no extra cost to you.

GameDev.net may earn a commission if you purchase through these links. This helps fund the site at no extra cost to you.