{"record":{"id":"c24b47b9e0353322","repo":"Unity-Technologies/UnityCsReference","slug":"playersettings-phonesplashscreenimagescale240-is-d-c24b47","errorCode":null,"errorMessage":"PlayerSettings.phoneSplashScreenImageScale240 is deprecated. Use SetVisualAssetsImage() instead.","messagePattern":"PlayerSettings\\.phoneSplashScreenImageScale240 is deprecated\\. Use SetVisualAssetsImage\\(\\) instead\\.","errorType":"exception","errorClass":"NotSupportedException","httpStatus":null,"severity":"error","filePath":"Editor/Mono/PlayerSettingsWSA.cs","lineNumber":699,"sourceCode":"                    throw new NotSupportedException(\"PlayerSettings.phoneSplashScreenImageScale140 is deprecated. Use GetVisualAssetsImage() instead.\");\n                }\n                set\n                {\n                    throw new NotSupportedException(\"PlayerSettings.phoneSplashScreenImageScale140 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 phoneSplashScreenImageScale240\n            {\n                get\n                {\n                    throw new NotSupportedException(\"PlayerSettings.phoneSplashScreenImageScale240 is deprecated. Use GetVisualAssetsImage() instead.\");\n                }\n                set\n                {\n                    throw new NotSupportedException(\"PlayerSettings.phoneSplashScreenImageScale240 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 packageLogo140\n            {\n                get\n                {\n                    throw new NotSupportedException(\"PlayerSettings.packageLogo140 is deprecated. Use GetVisualAssetsImage() instead.\");\n                }\n                set\n                {\n                    throw new NotSupportedException(\"PlayerSettings.packageLogo140 is deprecated. Use SetVisualAssetsImage() instead.\");\n                }\n            }\n\n            [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]","sourceCodeStart":681,"sourceCodeEnd":717,"githubUrl":"https://github.com/Unity-Technologies/UnityCsReference/blob/225b0fbdb57cc17d094e8056b71f8314aba56f73/Editor/Mono/PlayerSettingsWSA.cs#L681-L717","documentation":"PlayerSettings.WSA.phoneSplashScreenImageScale240 was a string property whose setter assigned the Windows Phone splash screen image at 240% DPI scale. Unity replaced all per-scale visual asset setters with SetVisualAssetsImage(image, WSAImageType, WSAImageScale). The [Obsolete(..., true)] flag makes direct usage a compile error; the runtime NotSupportedException catches reflection-based writes.","triggerScenarios":"Assigning to PlayerSettings.WSA.phoneSplashScreenImageScale240 through reflection, dynamic keyword, or a pre-compiled plugin DLL.","commonSituations":"Build pipelines configuring WSA splash screen assets for high-DPI Windows Phone devices. Deployment automation scripts from pre-UWP Unity versions. Third-party asset store plugins.","solutions":["Replace the setter with PlayerSettings.WSA.SetVisualAssetsImage(path, WSAImageType.SplashScreenImage, WSAImageScale._240)","Migrate to UWP-supported scales (_100, _125, _150, _200) since _240 is deprecated for UWP","Recompile all editor scripts to catch remaining [Obsolete] errors"],"exampleFix":"// before\nPlayerSettings.WSA.phoneSplashScreenImageScale240 = \"Assets/Splash/splash240.png\";\n\n// after\nPlayerSettings.WSA.SetVisualAssetsImage(\"Assets/Splash/splash.png\", WSAImageType.SplashScreenImage, WSAImageScale._200);","handlingStrategy":"validation","validationCode":"var prop = typeof(PlayerSettings.WSA).GetProperty(\"phoneSplashScreenImageScale240\");\nif (prop?.GetCustomAttribute<System.ObsoleteAttribute>()?.IsError == true)\n    Debug.LogError(\"Property is obsolete. Use SetVisualAssetsImage() instead.\");","typeGuard":null,"tryCatchPattern":"try { /* deprecated setter via reflection */ }\ncatch (NotSupportedException ex) when (ex.Message.Contains(\"SetVisualAssetsImage\"))\n{ Debug.LogError(\"Migrate to SetVisualAssetsImage().\"); }","preventionTips":["Replace all per-scale WSA image setters before Unity upgrade","Use UWP-supported scales (_100, _125, _150, _200) instead of deprecated _240"],"tags":["unity","wsa","uwp","deprecated","editor-scripting","playersettings","splashscreen"],"backgroundTag":null,"analyzedSha":"225b0fbdb57cc17d094e8056b71f8314aba56f73","analyzedAt":"2026-08-13T19:07:19.849Z","schemaVersion":2},"datasetVersion":"2026-08-13T19:17:28.613Z"}