{"record":{"id":"691f1d12e198dd0d","repo":"Unity-Technologies/UnityCsReference","slug":"playersettings-phoneappicon140-is-deprecated-use-691f1d","errorCode":null,"errorMessage":"PlayerSettings.phoneAppIcon140 is deprecated. Use SetVisualAssetsImage() instead.","messagePattern":"PlayerSettings\\.phoneAppIcon140 is deprecated\\. Use SetVisualAssetsImage\\(\\) instead\\.","errorType":"exception","errorClass":"NotSupportedException","httpStatus":null,"severity":"error","filePath":"Editor/Mono/PlayerSettingsWSA.cs","lineNumber":517,"sourceCode":"                    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.\");\n                }\n            }\n\n            [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]","sourceCodeStart":499,"sourceCodeEnd":535,"githubUrl":"https://github.com/Unity-Technologies/UnityCsReference/blob/225b0fbdb57cc17d094e8056b71f8314aba56f73/Editor/Mono/PlayerSettingsWSA.cs#L499-L535","documentation":"PlayerSettings.WSA.phoneAppIcon140 is a deprecated static property setter that always throws NotSupportedException. The 140% scale Windows Phone app icon assignment was replaced by SetVisualAssetsImage(string, WSAImageType, WSAImageScale) with type WSAImageType.UWPSquare44x44Logo. It is [Obsolete(..., true)] and [EditorBrowsable(Never)].","triggerScenarios":"Assigning to PlayerSettings.WSA.phoneAppIcon140 (the setter) in editor scripts, build pipelines, or post-processing. Encountered most through reflection-based code or stale API references.","commonSituations":"Migrating a UWP build pipeline from an older Unity version; CI scripts that set app icons at multiple scales; third-party packages with stale property references.","solutions":["Replace with PlayerSettings.WSA.SetVisualAssetsImage(path, WSAImageType.UWPSquare44x44Logo, WSAImageScale._150).","Migrate all phoneAppIcon* variants at once to prevent mixed old/new API usage.","Replace stale plugin DLLs with versions compatible with the current Unity API."],"exampleFix":"// before\nPlayerSettings.WSA.phoneAppIcon140 = \"Assets/Icons/appIcon140.png\";\n\n// after\nPlayerSettings.WSA.SetVisualAssetsImage(\"Assets/Icons/appIcon140.png\", WSAImageType.UWPSquare44x44Logo, WSAImageScale._150);","handlingStrategy":"type-guard","validationCode":"// Use the new setter for app icon at ~140% scale\nPlayerSettings.WSA.SetVisualAssetsImage(path, 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":["Replace phoneAppIcon140 assignments with SetVisualAssetsImage using WSAImageScale._150.","Audit imported packages for stale app icon property references.","Use the unified API for all app icon scale variants."],"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"}