Placing a generated object in the center of a plane..

Hi, i’ve been trying for days to do this, I’m more than certain that it is a dumb question, but well…

I have a maze generator. The objective to accomplish is to create 6 mazes, each one with a plane in his base that scalates depending of the size of the maze given in tiles.
I know that in one plane, i can fit a 3x3 matrix of tiles, but I just can’t make it work to center my maze in the center of the plane. Everytime I try something, the maze generates in some random position, and I can’t center it on my base plane.

Moving the gameobject “GenerarLaberinto” (the maze generator) to 0,0,0 doesn’t work
Getting the mesh renderer from the plane (piso) and transforming the maze position to the bounds.center doesn’t work either

I’m really losing my mind here (:slight_smile: It’s my first game with Unity, I’d like to learn a lot but I feel useless right now

it’s more of a algorithm problem I suppose , dig into that code a little bit will certainly help.