{"record":{"id":"92860a7a35cab482","repo":"Unity-Technologies/UnityCsReference","slug":"playersettings-phoneappicon240-is-deprecated-use","errorCode":null,"errorMessage":"PlayerSettings.phoneAppIcon240 is deprecated. Use GetVisualAssetsImage() instead.","messagePattern":"PlayerSettings\\.phoneAppIcon240 is deprecated\\. Use GetVisualAssetsImage\\(\\) instead\\.","errorType":"exception","errorClass":"NotSupportedException","httpStatus":null,"severity":"error","filePath":"Editor/Mono/PlayerSettingsWSA.cs","lineNumber":527,"sourceCode":"            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.\");\n                }\n            }\n\n            [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]\n            [Obsolete(\"Use GetVisualAssetsImage()/SetVisualAssetsImage()\", true)]\n            public static string phoneSmallTile\n            {\n                get\n                {\n                    throw new NotSupportedException(\"PlayerSettings.phoneSmallTile is deprecated. Use GetVisualAssetsImage() instead.\");\n                }\n                set\n                {\n                    throw new NotSupportedException(\"PlayerSettings.phoneSmallTile is deprecated. Use SetVisualAssetsImage() instead.\");","sourceCodeStart":509,"sourceCodeEnd":545,"githubUrl":"https://github.com/Unity-Technologies/UnityCsReference/blob/225b0fbdb57cc17d094e8056b71f8314aba56f73/Editor/Mono/PlayerSettingsWSA.cs#L509-L545","documentation":"PlayerSettings.WSA.phoneAppIcon240 is a deprecated static property getter that always throws NotSupportedException. The 240% scale Windows Phone app icon property was replaced by GetVisualAssetsImage(WSAImageType, WSAImageScale) with type WSAImageType.UWPSquare44x44Logo. It is [Obsolete(..., true)] and [EditorBrowsable(Never)].","triggerScenarios":"Reading PlayerSettings.WSA.phoneAppIcon240 (the getter) in editor scripts, build reports, or configuration readers. Direct access fails to compile; runtime hits come from reflection or SerializedProperty traversal.","commonSituations":"Upgrading from a Windows Phone 8.1-era Unity project to UWP; plugins that read multi-scale app icon paths; build scripts that export current WSA configuration.","solutions":["Replace with PlayerSettings.WSA.GetVisualAssetsImage(WSAImageType.UWPSquare44x44Logo, WSAImageScale._200) — the 240% legacy scale maps closest to UWP _200.","Audit and migrate all phoneAppIcon240 references.","Update plugin DLLs that reference the deprecated getter."],"exampleFix":"// before\nstring path = PlayerSettings.WSA.phoneAppIcon240;\n\n// after\nstring path = PlayerSettings.WSA.GetVisualAssetsImage(WSAImageType.UWPSquare44x44Logo, WSAImageScale._200);","handlingStrategy":"type-guard","validationCode":"// Use the new getter for app icon at ~240% scale\nstring path = PlayerSettings.WSA.GetVisualAssetsImage(WSAImageType.UWPSquare44x44Logo, WSAImageScale._200);","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 240% app icon scale to WSAImageScale._200 (the closest UWP scale).","Filter deprecated properties during reflection-based enumeration of PlayerSettings.WSA.","Search for 'phoneAppIcon240' after Unity version 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"}