Change project default icon using editor script

Hi is it possible to change the project default icon in PlayerSettings using a script? Seems it is possible to modify a lot of PlayerSettings variables but I cannot find the way to modify the default icon, any ideas?

@satanin I think you are looking for it

PlayerSettings.SetIconsForTargetGroup(BuildTargetGroup.Unknown, theTexture2DArray);

Programmatically set default icon for mobile - Questions & Answers - Unity Discussions

I’m not 100% sure about this but it seems that:

PlayerSettings.SetIconsForTargetGroup(BuildTargetGroup.Unknown, new Texture2D[] { icon });

works to set the Default Icon only.

Tested on Unity 2019.3.