Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Question How to display wapped grid on the surface of a mesh (terrain)?

Discussion in 'World Building' started by Solidcomer, Feb 15, 2023.

  1. Solidcomer

    Solidcomer

    Joined:
    Sep 12, 2017
    Posts:
    93
    Hello,
    I want to display grid on the terrain which is a mesh so that the player can place gameobject on a cell of the grid. The mesh is not flat with higher and lower ground, I'm wondering how can I culculate and render this grid over any shape of mesh. Do I need to use shader? Can I do it with script only?

    Please see the attached screenshot.
    Any clue is appreicated.
     

    Attached Files:

    Last edited: Feb 15, 2023