private void ApplyTerrainTextures() { pgcTerrain.minHeightDirt = 0f; pgcTerrain.maxHeightDirt = 0.0015f; pgcTerrain.minHeightGrass = 0.001f; pgcTerrain.maxHeightGrass = 30f; //pgcTerrain.minSlopeDirt = 0f; //pgcTerrain.maxSlopeDirt = 90f; //pgcTerrain.minSlopeGrass = 0f; //pgcTerrain.maxSlopeGrass = 90f; pgcTerrain.ApplyTerrainTextures(pgcTerrain.gameObject.GetComponent <Terrain>()); }