How to set ProjectSettings via script

I have found this method to set icons via script: Unity - Scripting API: PlayerSettings.SetPlatformIcons
However, UnityEditor.iOS.iOSPlatformIconKind, UnityEditor.Android.PlatformIconKind are missing, and PlatformIconKind class itself has internal methods and internal constructor. Why does the documentation show us how to use it then?

Rather late than never!

You will only be able to access those classes for build targets you have installed
In other words, if you want to modify iOS icons, you’d need to install iOS build support, you can do this via the Unity hub

or the build settings:

Remember to shield your code with platform dependant compilation pragmas:

//iOS platform dependant code here

Can find a full list here:

Hope this helps someone :slight_smile: