Пример #1
0
        public void ApplyPreset()
        {
            if (tilingPresetIndex < tilingPresets.Length)
            {
                tiling = tilingPresets[tilingPresetIndex];
            }
            else if (tilingPresetIndex == tilingPresets.Length)
            {
                // if it's default (dynamic with player settings)
                if (QualitySettings.lodBias < 0.5f)
                {
                    tiling = tilingPresets[3]; // extra low
                }
                else if (QualitySettings.lodBias < 1)
                {
                    tiling = tilingPresets[0]; // standard
                }
                else
                {
                    tiling = tilingPresets[1]; // hq
                }
            }

            tiling.Setup();

            SetupQuilt();
        }