Home Creators Posts Import Register Favorites Logout
haven't archived this post yet. have a subscription? use the importer!

Content

Hey!

Here are patreon exclusive code files / project files for the Hex movement tutorial.

Project files: https://drive.google.com/drive/folders/1b0UJMbnsF2A1nScSxQVUpfRBXz4-FQp3?usp=sharing

Code files: https://github.com/SunnyValleyStudio/hex_grid_movement

Thanks a lot for your support!

Here is the link to the tutorial https://youtu.be/htZijEO7ZmE

Take care!

Peter

Files

Previews only

Comments

Anonymous

Hi, great tutorial! Trying similar with GlowHighlight.cs but instead I'm instantiating hex's at runtime and it doesn;t work. foreach (Renderer renderer in GetComponentsInChildren()) finds no Renderers for the new instantiated hex's, but does for the ones you have in the scene - any ideas? I'm using same hex prefab so quite confused. I have compared both hex objects and the only difference I see is the hex_forest Mesh shows up as Combined Mesh (root:scene) in your scene added hexs...... Comparing both hex

Peter

I am not quite sure. If the system work works a static map and breaks when you instantiate hexes at runtime it might mean that the shader swapping code saves some data before the hexes are finished spawning. The issue also might be that your hex prefab has a different shader. If you can't figure it out be sure to join discord and post the script / screenshots there. Discord links are in the description of each vid ;)