public void SetRegionMapValues(RegionMap regionMap) { textureSize = regionMap.textureSize; hdCount = 0; foreach (HumidityData hd in regionMap.humidityLevels) { if (hd.isActive) { hdCount++; } } hdLenghts = regionMap.GetHumidityLevelsLenght(hdLenghts); hdIncRegs = regionMap.GetAllIncludedRegions(hdIncRegs); biomsBlend = regionMap.biomsBlend; if (useTextures) { mainTextures = regionMap.regions.Select(x => x.mainTexture).ToArray(); slopeTextures = regionMap.regions.Select(x => x.slopeTexture).ToArray(); } scales = GetSizedArray(regionMap.regions.Select(x => x.scale).ToArray(), scales); colorStrenghts = GetSizedArray(regionMap.regions.Select(x => x.colorStrenght).ToArray(), colorStrenghts); mainColors = GetSizedArray(regionMap.regions.Select(x => x.mainColor).ToArray(), mainColors); slopeColors = GetSizedArray(regionMap.regions.Select(x => x.slopeColor).ToArray(), slopeColors); heights = GetSizedArray(regionMap.regions.Select(x => x.height).ToArray(), heights); slopeThresholds = GetSizedArray(regionMap.regions.Select(x => x.slopeThreshold).ToArray(), slopeThresholds); slopeBlendAmounts = GetSizedArray(regionMap.regions.Select(x => x.slopeBlendAmount).ToArray(), slopeBlendAmounts); regionBlendAmounts = GetSizedArray(regionMap.regions.Select(x => x.regionBlendAmount).ToArray(), regionBlendAmounts); }