Categories
Game Development Unity

Unity DOTS NativeArray defaults

I wanted to create a set of chunks in a grid along the X + Z axis in Unity (with the power of DOTS). To track which chunks I have already instantiated, I created a NativeArray<float3> named chunkPositions. I set the size of this array to my world size (width by height) and I have a job that loops through all of the positions on the screen, checking which exist in chunkPositions. If the position does not exist, I can create a new chunk there.

Where are you, 0,0?
Categories
Game Development Unity

Phase: Discovery

I’ve had a lot of thoughts as to what my game might be, and I have some interesting ideas of cool gameplay mechanics. When approaching new projects (not just in game dev) I always have a general “feeling” of what I’m trying to build. I can’t always visualize or explain the feeling, but I’d be able to tell you if I saw it.