Unity-Technologies/UnityCsReference · error · NotSupportedException
PlayerSettings.phoneAppIcon140 is deprecated. Use GetVisualA
Error message
PlayerSettings.phoneAppIcon140 is deprecated. Use GetVisualAssetsImage() instead.
What it means
PlayerSettings.WSA.phoneAppIcon140 is a deprecated static property getter that always throws NotSupportedException. The 140% scale Windows Phone app icon property was superseded by GetVisualAssetsImage(WSAImageType, WSAImageScale) with type WSAImageType.UWPSquare44x44Logo. It is [Obsolete(..., true)] and [EditorBrowsable(Never)].
Source
Thrown at Editor/Mono/PlayerSettingsWSA.cs:513
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)]
[Obsolete("Use GetVisualAssetsImage()/SetVisualAssetsImage()", true)]
public static string phoneAppIcon240
{
get
{
throw new NotSupportedException("PlayerSettings.phoneAppIcon240 is deprecated. Use GetVisualAssetsImage() instead.");
}
set
{
throw new NotSupportedException("PlayerSettings.phoneAppIcon240 is deprecated. Use SetVisualAssetsImage() instead.");View on GitHub (pinned to 225b0fbdb5)
Solutions
- Replace with PlayerSettings.WSA.GetVisualAssetsImage(WSAImageType.UWPSquare44x44Logo, WSAImageScale._150) — the 140% legacy scale maps closest to UWP _150.
- Search for and migrate all phoneAppIcon140 references.
- Update or replace plugin DLLs referencing the deprecated member.
Example fix
// before string path = PlayerSettings.WSA.phoneAppIcon140; // after string path = PlayerSettings.WSA.GetVisualAssetsImage(WSAImageType.UWPSquare44x44Logo, WSAImageScale._150);
Defensive patterns
Strategy: type-guard
Validate before calling
// Use the new getter for app icon at ~140% scale string path = PlayerSettings.WSA.GetVisualAssetsImage(WSAImageType.UWPSquare44x44Logo, WSAImageScale._150);
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
- Map legacy 140% app icon scale to WSAImageScale._150.
- Skip [Obsolete(IsError=true)] members during reflection-based property access.
- Grep for 'phoneAppIcon140' after upgrades.
When it happens
Trigger: Reading PlayerSettings.WSA.phoneAppIcon140 (the getter) in editor tooling, build reports, or serialization paths. Compile-time for direct access; runtime via reflection.
Common situations: Porting a Windows Phone 8.1 app icon configuration to UWP; plugins that read multi-scale app icon paths; upgrading Unity with stale references in third-party code.
Related errors
- PlayerSettings.phoneAppIcon is deprecated. Use GetVisualAsse
- PlayerSettings.phoneAppIcon is deprecated. Use SetVisualAsse
- 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/11b0a6dff8c60c18.
Report an issue: GitHub.