Set game object position relative to the Camera

Hello,

I'm coding a script that reads a text file with a tilemap(like the ones from the tiled tool), and then creates game objects in the game world, each representing a tile. The thing is, after creating the game objects, I try to position them relative to top left corner of the screen, like in a grid. But whenever I run the game, the objects are positioned far from the camera, and with a great space between then. Here is the code who creates and set the position of the objects:

This code is in a object who is the parent of all tiles. Also, I'm using a canvas with "Screen Space - Camera", the game is supposed to be 2D topdown with the camera locked in a position, and the tile objects are prefabs with only 32x32 sprites.

It is my intention to use this code to create objects starting from the top left corner, each adjacent to the other.

After some research, I believe it might have something to do with the difference between units in the game world and pixels. Still, don't have a clue on which I'm actually using in this code, which to use for my intended purpose, or if this is actually the problem.

Any help is very well appreciated!

EDIT: The screenshots from the game view, the main camera inspector, and from the tile object(greentestblock) who is spawning outside the view:

Hey @tormentoarmagedoom , I posted some screenshots in the question. Here's another one (from the canvas) as I can't post more than two images:

Also, is there a difference between during the instantiation provide the position and provide it after the instantiation? I'm assigning the position later because of the logic I thought for positioning the objects.