| | 1 | | using UnityEngine; |
| | 2 | |
|
| | 3 | | namespace DCL.SettingsCommon |
| | 4 | | { |
| | 5 | | [CreateAssetMenu(fileName = "QualitySettings", menuName = "QualitySettings")] |
| | 6 | | public class QualitySettingsData : ScriptableObject |
| | 7 | | { |
| | 8 | | [SerializeField] int defaultPresetIndex = 0; |
| | 9 | | [SerializeField] QualitySettings[] settings = null; |
| | 10 | |
|
| 0 | 11 | | public QualitySettings this[int i] { get { return settings[i]; } } |
| | 12 | |
|
| 0 | 13 | | public int Length { get { return settings.Length; } } |
| | 14 | |
|
| 0 | 15 | | public QualitySettings defaultPreset { get { return settings[defaultPresetIndex]; } } |
| | 16 | |
|
| 0 | 17 | | public int defaultIndex { get { return defaultPresetIndex; } } |
| | 18 | |
|
| 0 | 19 | | public void Set(QualitySettings[] newSettings) { settings = newSettings; } |
| | 20 | | } |
| | 21 | |
|
| | 22 | | } |