public static void CopyPreset(int level = -1)
 {
     if (level < 0)
     {
         level = PlayerPreferences.Preset;
     }
     TheForestQualitySettings.Copy(TheForestQualitySettings.GetPreset(level), TheForestQualitySettings.UserSettings);
 }
    public static int GetGrassLevelDensity()
    {
        int num = QualitySettings.names.Length;

        for (int i = 0; i < num; i++)
        {
            TheForestQualitySettings preset = TheForestQualitySettings.GetPreset(i);
            if (preset.GrassDensity == TheForestQualitySettings.UserSettings.GrassDensity)
            {
                return(i);
            }
        }
        return(-1);
    }
    public static int GetScatterLevel()
    {
        int num = QualitySettings.names.Length;

        for (int i = 0; i < num; i++)
        {
            TheForestQualitySettings preset = TheForestQualitySettings.GetPreset(i);
            if (preset.ScatterResolution == TheForestQualitySettings.UserSettings.ScatterResolution && preset.ScatterSamplingQuality == TheForestQualitySettings.UserSettings.ScatterSamplingQuality)
            {
                return(i);
            }
        }
        return(-1);
    }