- Home /
Project an hex grid on a non flat terrain.
Hi :) I just created a script that generates hex tiles over a flat planes:
But if I create some mountains, obviously, generated tiles remain flat and go inside the terrain.
So I'd like to project textures on the terrain (but also using transparent tiles for selection) like this:
Is it possible project or draw wire textures of hexes? And how? :)
Thank you! :D
Answer by fafase · Jul 15, 2014 at 06:58 PM
Use a projector.
Import the Projector asset from unity, there is a Grid example. You just need to swap with the appropriate texture.
Yes, but it doesn't work with hex, this is what it project: $$anonymous$$aybe it's my fault. But the other problem is: even if I will succeed with projection, how to allineate with the selectable tiles generates via script?
Answer by AlucardJay · Aug 30, 2014 at 03:50 PM
I have added a solution in the forums here : http://forum.unity3d.com/threads/casting-hex-grid-over-terrain.265026/#post-1755400
Your answer
![](https://koobas.hobune.stream/wayback/20220613154140im_/https://answers.unity.com/themes/thub/images/avi.jpg)