I am attempting to create a landscape similar to terraria, in unreal engine 5 blueprints, using hierarchical instance static mesh instances.
For some reason it is spawning multiple chunks in the same place. I have attached a screenshot of my chunk generation function, which is all executed in the player controller.
I have tried manually placing a chunk in the world and can confirm that there where no duplicates, meaning the bug is coming from the spawnNewChunksWithinRenderRange function.
Any help appreciated ![]()

