Object Pool Spawns BETWEEN Nodes

Between

After moving the environment and main camera like in the video, now the enemies spawn between nodes in the X position. The Y is ok.

See image for reference.

How to solve this?

UPDATE:

After testing, I tried moving tiles vertically, and I see it seems like they are offset by 5 units, instead of 10, which is the Unity Grid Snapping that we are using in this tutorial.

Still dont know how to fix this.
issue

Hi Red,

Welcome to our community! Good job on analysing the problem in your game. :slight_smile:

First of all, make sure the “Gizmo handle position toggles” are set to “Pivot | Global”. Then select a tile in your scene. If the handle is not in the centre of the mesh, select the children (not the parent) and move the children relative to the parent. The local offset (= local position of the children) should match the negative offset that you want to fix.

It might be that you’ll have to move all tiles in your scene. If they are perfectly aligned, select all of them and move all of them simultaneously to fix the unwanted offset.

Did this help?


See also:

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms