You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public sealed class TextureResolutionDropdown : DropdownOption {
[Tooltip("Setting for the corresponding dropdown index.")]
public TextureResolution[] textureResolutionOptions = {
TextureResolution.Quarter,
TextureResolution.Half,
TextureResolution.Full
};
public enum TextureResolution { Full = 0, Half = 1, Quarter = 2, Eighth = 3 } //0 is the highest texture resolution, 3 is the lowest. Each setting is half the resolution of the previous one
protected override void ApplySetting(int _value){
_value = Mathf.Min(_value, textureResolutionOptions.Length-1); //Limit max value to avoid invalid saved values