{"record":{"id":"11b0a6dff8c60c18","repo":"Unity-Technologies/UnityCsReference","slug":"playersettings-phoneappicon140-is-deprecated-use","errorCode":null,"errorMessage":"PlayerSettings.phoneAppIcon140 is deprecated. Use GetVisualAssetsImage() instead.","messagePattern":"PlayerSettings\\.phoneAppIcon140 is deprecated\\. Use GetVisualAssetsImage\\(\\) instead\\.","errorType":"exception","errorClass":"NotSupportedException","httpStatus":null,"severity":"error","filePath":"Editor/Mono/PlayerSettingsWSA.cs","lineNumber":513,"sourceCode":"            public static string phoneAppIcon\n            {\n                get\n                {\n                    throw new NotSupportedException(\"PlayerSettings.phoneAppIcon is deprecated. Use GetVisualAssetsImage() instead.\");\n                }\n                set\n                {\n                    throw new NotSupportedException(\"PlayerSettings.phoneAppIcon is deprecated. Use SetVisualAssetsImage() instead.\");\n                }\n            }\n\n            [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]\n            [Obsolete(\"Use GetVisualAssetsImage()/SetVisualAssetsImage()\", true)]\n            public static string phoneAppIcon140\n            {\n                get\n                {\n                    throw new NotSupportedException(\"PlayerSettings.phoneAppIcon140 is deprecated. Use GetVisualAssetsImage() instead.\");\n                }\n                set\n                {\n                    throw new NotSupportedException(\"PlayerSettings.phoneAppIcon140 is deprecated. Use SetVisualAssetsImage() instead.\");\n                }\n            }\n\n            [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]\n            [Obsolete(\"Use GetVisualAssetsImage()/SetVisualAssetsImage()\", true)]\n            public static string phoneAppIcon240\n            {\n                get\n                {\n                    throw new NotSupportedException(\"PlayerSettings.phoneAppIcon240 is deprecated. Use GetVisualAssetsImage() instead.\");\n                }\n                set\n                {\n                    throw new NotSupportedException(\"PlayerSettings.phoneAppIcon240 is deprecated. Use SetVisualAssetsImage() instead.\");","sourceCodeStart":495,"sourceCodeEnd":531,"githubUrl":"https://github.com/Unity-Technologies/UnityCsReference/blob/225b0fbdb57cc17d094e8056b71f8314aba56f73/Editor/Mono/PlayerSettingsWSA.cs#L495-L531","documentation":"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)].","triggerScenarios":"Reading PlayerSettings.WSA.phoneAppIcon140 (the getter) in editor tooling, build reports, or serialization paths. Compile-time for direct access; runtime via reflection.","commonSituations":"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.","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."],"exampleFix":"// before\nstring path = PlayerSettings.WSA.phoneAppIcon140;\n\n// after\nstring path = PlayerSettings.WSA.GetVisualAssetsImage(WSAImageType.UWPSquare44x44Logo, WSAImageScale._150);","handlingStrategy":"type-guard","validationCode":"// Use the new getter for app icon at ~140% scale\nstring path = PlayerSettings.WSA.GetVisualAssetsImage(WSAImageType.UWPSquare44x44Logo, WSAImageScale._150);","typeGuard":"static bool IsDeprecatedWsaProperty(string name) =>\n    typeof(PlayerSettings.WSA)\n        .GetProperty(name,\n            System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.Static)\n        ?.GetCustomAttribute<ObsoleteAttribute>()?.IsError == true;","tryCatchPattern":null,"preventionTips":["Map legacy 140% app icon scale to WSAImageScale._150.","Skip [Obsolete(IsError=true)] members during reflection-based property access.","Grep for 'phoneAppIcon140' after upgrades."],"tags":["unity","uwp","wsa","deprecation","player-settings","app-icon"],"backgroundTag":null,"analyzedSha":"225b0fbdb57cc17d094e8056b71f8314aba56f73","analyzedAt":"2026-08-13T19:07:19.849Z","schemaVersion":2},"datasetVersion":"2026-08-13T19:17:28.613Z"}