I want to make a grid similar to these pictures:
How would i dynamically generate this grid at a certain z (vertical) level?
I want to use a texture, unless i can generate it using raycast as different colors and thicknesses (probably using more rays). This is for a 3d scene app for android if that matters.
First, the grid. Without amazing colors.
Just draw a grid square in a texture. Then TILE it onto a flat surface. If you use a flat ground, then you can rotate it as you please.
If you need to move the grid, you can either move the ground the same amount as the gridsize and then reset the position OR index into the texture/material itself and add directly to the UV map coords.
The colors could be made with another texture multiplied/added into the same shader.
I meant dynamically created as in a non-static game object, because i thought that might eat up resources and would be hard to scale and etc.
A dynamically created item only draws what is in view and creates the desired shape or etc using a function or repeating pattern of code. If i do this i am not sure how to get it to only draw within my camera view (camera can move and rotate) and how to get it to not move with the camera (if i do something based on camera position to get it to only draw in camera fov)
u can draw with script also…u can get the script in unity3d forum link is
Draw grid lines in game view? - Unity Answers
it will help u…