protected override IEnumerator SetUp() { yield return(base.SetUp()); qualities = ScriptableObject.CreateInstance <QualitySettingsData>(); qualities.Set(new [] { Settings.i.qualitySettings, Settings.i.qualitySettings, Settings.i.qualitySettings, Settings.i.qualitySettings, Settings.i.qualitySettings, Settings.i.qualitySettings, Settings.i.qualitySettings, Settings.i.qualitySettings, Settings.i.qualitySettings, }); controller = new AutoQualityCappedFPSController(30, 0, qualities); }
public AutoQualityCappedFPSController(int targetFPS, int startIndex, QualitySettingsData qualitySettings) { this.targetFPS = targetFPS; currentQualityIndex = startIndex; this.qualitySettings = qualitySettings; }
public AutoQualityUncappedFPSController(int startIndex, QualitySettingsData qualitySettings) { currentQualityIndex = startIndex; this.qualitySettings = qualitySettings; }