- Home /
Hexagonal map on terrain
Good day, guys. Firstly, sorry for my English.
So, i wanna write some strategy on hex grid something like Expeditions. Conquistador. Sreenshot:
I think the best way - create terrain and generate tiles using GetHeight. I find two way: create hex prefab and put it into map (but i don't know how i can rotate and skale it) or create map from mesh collider - but i don't know how i can create some material like in screenshot.
So, may be all my ways are wrong or you can give me some advice?
Thank you in advance!
Don't use prefabs for every tile, performance will by horrible. Generate mesh by code, going through each tile position and add vertices, triangles and uvs for one tile mesh at a time. Have different textures either by a tilemap where one material has a a texture with all tile textures, or use submeshes while generating the mesh to make tile use different materials.
Answer by techspy · Apr 14, 2016 at 12:10 PM
I use these tutorials and I am certain they will point you in the right direction. You have to work extra though to combine the Hex tuts with the Noise ones if you want randomly generated terrain. The ones you specidicaly want are there though. The link is: catlikecoding.com/unity/tutorials/
Your answer
Follow this Question
Related Questions
Hexagon grid UV mapping 0 Answers
Help mapping Square Texture to Hex Shape Mesh. 1 Answer
can i use a hexagon mesh on a Terrain? 1 Answer
How can I achieve movement on hextile? 0 Answers
Lightmapping Error with combined meshes 0 Answers