Unity-Technologies/UnityCsReference · error · NotSupportedException
PlayerSettings.phoneAppIcon is deprecated. Use SetVisualAsse
Error message
PlayerSettings.phoneAppIcon is deprecated. Use SetVisualAssetsImage() instead.
What it means
PlayerSettings.WSA.phoneAppIcon is a deprecated static property setter that always throws NotSupportedException. The base-scale Windows Phone app icon assignment was replaced by SetVisualAssetsImage(string, WSAImageType, WSAImageScale) with type WSAImageType.UWPSquare44x44Logo. It is [Obsolete(..., true)] and [EditorBrowsable(Never)].
Source
Thrown at Editor/Mono/PlayerSettingsWSA.cs:503
throw new NotSupportedException("PlayerSettings.storeSplashScreenImageScale180 is deprecated. Use GetVisualAssetsImage() instead.");
}
set
{
throw new NotSupportedException("PlayerSettings.storeSplashScreenImageScale180 is deprecated. Use SetVisualAssetsImage() instead.");
}
}
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[Obsolete("Use GetVisualAssetsImage()/SetVisualAssetsImage()", true)]
public static string phoneAppIcon
{
get
{
throw new NotSupportedException("PlayerSettings.phoneAppIcon is deprecated. Use GetVisualAssetsImage() instead.");
}
set
{
throw new NotSupportedException("PlayerSettings.phoneAppIcon is deprecated. Use SetVisualAssetsImage() instead.");
}
}
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[Obsolete("Use GetVisualAssetsImage()/SetVisualAssetsImage()", true)]
public static string phoneAppIcon140
{
get
{
throw new NotSupportedException("PlayerSettings.phoneAppIcon140 is deprecated. Use GetVisualAssetsImage() instead.");
}
set
{
throw new NotSupportedException("PlayerSettings.phoneAppIcon140 is deprecated. Use SetVisualAssetsImage() instead.");
}
}
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]View on GitHub (pinned to 225b0fbdb5)
Solutions
- Replace with PlayerSettings.WSA.SetVisualAssetsImage(path, WSAImageType.UWPSquare44x44Logo, WSAImageScale._100).
- Migrate all phoneAppIcon* scale variants at once.
- Update plugins to versions targeting the current Unity API.
Example fix
// before
PlayerSettings.WSA.phoneAppIcon = "Assets/Icons/appIcon.png";
// after
PlayerSettings.WSA.SetVisualAssetsImage("Assets/Icons/appIcon.png", WSAImageType.UWPSquare44x44Logo, WSAImageScale._100); Defensive patterns
Strategy: type-guard
Validate before calling
// Use the new setter for app icon at base scale PlayerSettings.WSA.SetVisualAssetsImage(path, WSAImageType.UWPSquare44x44Logo, WSAImageScale._100);
Type guard
static bool IsDeprecatedWsaProperty(string name) =>
typeof(PlayerSettings.WSA)
.GetProperty(name,
System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.Static)
?.GetCustomAttribute<ObsoleteAttribute>()?.IsError == true; Prevention
- Replace phoneAppIcon assignments with SetVisualAssetsImage.
- Maintain a legacy-to-new mapping for all phone app icon scale variants.
- Update plugins after Unity version bumps.
When it happens
Trigger: Assigning to PlayerSettings.WSA.phoneAppIcon (the setter) in editor scripts, build automation, or post-processing. Usually encountered through reflection-based code or code targeting a deprecated API surface.
Common situations: Upgrading from Unity 5.x/2017 to a modern version; CI scripts that set the UWP app icon; third-party build tools that hard-code old property names.
Related errors
- PlayerSettings.phoneAppIcon is deprecated. Use GetVisualAsse
- PlayerSettings.phoneAppIcon140 is deprecated. Use GetVisualA
- PlayerSettings.phoneAppIcon140 is deprecated. Use SetVisualA
- PlayerSettings.phoneAppIcon240 is deprecated. Use GetVisualA
- PlayerSettings.storeSmallTile180 is deprecated. Use SetVisua
AI-assisted analysis of Unity-Technologies/UnityCsReference@225b0fbdb5 (2026-08-13).
Data as JSON: /api/errors/27adf00ac0924284.
Report an issue: GitHub.