- Home /
Is it possible to create a grid and highlight cells as you mouse over them?
I'm curious to know if it's possible to create a simple grid in code and highlight/render the cells as the mouse is moved over, to indicate where the mouse or player is on the grid. I know I've seen it done before in plenty of games, but I'm curious if there are any examples out there.
Note: This is in world space, not on screen space, so in actual 3D coordinates, and the grid itself would be moving as levels progress.
Answer by Robot River · Sep 13, 2013 at 06:11 AM
It sounds like you're looking for something similar to a tile map. Excellent tutorial of the wrong (and why it's wrong) and right way to do that here. Quill18 rules by the way. :)http://www.youtube.com/playlist?list=PLbghT7MmckI4qGA0Wm_TZS8LVrqS47I9R
Your answer
![](https://koobas.hobune.stream/wayback/20220613114050im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Mouse position to Isometric Grid Tile number 1 Answer
Snapping object to .25 grid 0 Answers
Tile based selection deselection 1 Answer
mouse position percentage problem 0 Answers
The best way to draw grid on terrain in editor mode 0 Answers