rendering a tile repeatedly from script

Hi

I have created a tile mesh in the script and able to render it. Now I want to able to render a terrain using these tiles. I want to render the tiles based on camera view and I have the positions. How can I use this single tile mesh and render repeatedly from the script ?

Thanks.

I would use a 2D for loop.
int width = 200;
int height = 200;

for(int x = 0; x < width; x++) {
for(int y = 0; y < height; y++) {

}
}

You could render a 200x200 landscape using a 2D for loop.

I want to use a single gameobject which is the tile and render it in a loop. Which function should I call to render ? How do I set up the render call ?

Do you mean you want to dynamically create tiles where the camera looks at ?

I dont want to create multiple tiles. I want simply to render the tile I have created (once) and render it in a loop at different positions that form the terrain.

Hmm…You say that you have created “the tile” which indicates that its a single tile
and then you also want to render it “in a loop” ? Why would you need a loop to
render a single tile ?