All of my hexes are assigned in an array and I cant figure out how to assign new materials to individual array elements/hexes, The end goal is to make each hex a random material each time you start the game. I’ll post some pictures of the blueprints and what the hexes look like below:
Hexes, these are adjustable, adding and removing items from the array and from the screen
I assume I cant do what I’m wanting to do in the construction script, I have tried many things and tried to look it up, but there is very little information on this.
Material mixes colors of based on if statement, or something like case of in C++, all based on float parameter from data channel of meshes. IF you feed/fill that numbers with random values you will get random colors (or materials/textures).
I may have worded my problem wrong, I’m sorry if I have.
I’m wanting to access individual hexes to be able to give them ‘values?’ for example I want to be able to have them have a chance to be a resource like forest or wheat field, or no resource.
For the time being I’m wanting to simply be able to change the material of the individual hexes so I can do the resources later.
If there is an easier way to do this, instead of doing the InstancedStaticMesh + array, I’m all ears.