Member-only story

How to make a chunk system in Unity using addressables

Anthelme Dumont
6 min readMay 28, 2021

If you played to Minecraft you already know what chunks are but for the most unfortunate I’ll give you the Minecraft Gamepedia definition:

Chunks are the method used by the world generator to divide maps into manageable pieces.

Don’t worry, it’s not a Minecraft specific tutorial explanation, the comparisons stop here.

Before we start, I’m using Unity version 2020.3.5f1 with the addressables package version 1.16.16, all the 3D assets are made by Kenney.

Link to the github repo

1. Preparation

If it’s not already the case you need to install the addressables package via the package manager.

Once you have everything in place and you have created your level design, you need to convert every piece into a prefab, the size and what you define as pieces depends on your needs.

For example, this is what my demo scene looks like and every hexagon tile has been converted into prefabs:

Left: game view of my level in 3D, Right: project view of my folder containing all my prefabs.

When it’s done, you need to select all your prefabs freshly created inside the Project view and click on the Addressable checkbox in the top left corner of your Inspector view.

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Anthelme Dumont
Anthelme Dumont

Written by Anthelme Dumont

Freelance Creative Developer & Game Developer, Former Creative Developer at @makemepulse, Graduate from @Gobelins_Paris

Responses (3)

What are your thoughts?

Sorry for the second comment, but since you're using addressables, at point are you building your asset database?
When writing the code to search for FIndAssetReferenceByName, it references a prefab but it doesn't appear to be linked with the addressable system

Thanks for the write up, it's an area that I'm finding difficult trying to understand how the implementation would look like.
My question is regarding the OnStateChanged method. I get the following warning message: "CS4014: Because this call is not…

Hi, I am trying to use your chunk system but it isn't really working. I have followed all of your steps but whenever I play, my character falls instead of walking on the ground. In your description you said to remove all properties on the tiles. So…