If I set QualitySettings.antiAliasing, then it sets value on quality level that was selected with a mouse, i.e. grey line - “Simple” in the image below:

How do I set QualitySettings.antiAliasing for level that is selected as a Default value for some platform, i.e. green checkbox - “Fastest”?
2 Answers
2
I believe you need to change the quality level first as changing anti-aliasing through code changes it for the currently selected quality setting. You can change it with QualitySettings.SetQualityLevel, then set the anti-aliasing. Unfortunately I do not know how you can get hold of which level is the default level through code.
Exactly - there is no way to know which is default level through code. Otherwise, yes I could accomplish that ;) so API is incomplete as far as I'm aware.
– Paulius-LiekisMost likely because it is a setting only necessary at edit time and QualitySettings is a runtime class. There is no QualitySettingsEditor class (actually there is but it is a private class only available to Unity) to edit the default settings through.
– GameVortex@GameVortex, exactly again :) I need it for Edit time, to suppress "AA is enabled" warning when building AssetBundles...
– Paulius-LiekisGood to know. I guess it's even possible to read it using SerializedObject and iterate through properties. Although I hoped I missed something and there is API for that :) I'll just hack something for now until they fix issues related to these QualitySettings
– Paulius-LiekisWell, theoretically yes, if you could ever get the reference to the serializedObject at all. QualitySettings is a static class and never returns any object you could use reflection on.
– GameVortex