Quantcast
Channel: Questions in topic: "icon"
Viewing all articles
Browse latest Browse all 271

[Unity 2021] Setting the Default Icon via script?

$
0
0
Hey there! In Unity 2020, you could set the default icon in the Project Settings with this code: `PlayerSettings.SetIconsForTargetGroup(BuildTargetGroup.Unknown, new Texture2D[] {defaultIcon});` However, in Unity 2021, `PlayerSettings.SetIconsForTargetGroup` is marked as deprecated and it's recommended to use the `PlayerSettings.SetIcons` method. But that doesn't seem to be having the desired effect. Trying to set the icon for `Build.NamedBuildTarget.Unknown` just results in a console error and setting for any other platform doesn't change the icon shown in Project Settings. Does anyone know how to do this now in Unity 2021? Thanks!

Viewing all articles
Browse latest Browse all 271

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>