/// <summary> /// Loop throught the meshes and set the material colour to the ones from the colour settings /// </summary> private void GenerateColours() { colourGenerator.UpdateColors(); for (int i = 0; i < MAX_FACES; ++i) { if (meshFilters[i].gameObject.activeSelf) { terrainFaces[i].UpdateUVs(colourGenerator); } } }