{"record":{"id":"4c3d914608f8e0ef","repo":"Unity-Technologies/UnityCsReference","slug":"playersettings-phonesplashscreenimagescale240-is-d","errorCode":null,"errorMessage":"PlayerSettings.phoneSplashScreenImageScale240 is deprecated. Use GetVisualAssetsImage() instead.","messagePattern":"PlayerSettings\\.phoneSplashScreenImageScale240 is deprecated\\. Use GetVisualAssetsImage\\(\\) instead\\.","errorType":"exception","errorClass":"NotSupportedException","httpStatus":null,"severity":"error","filePath":"Editor/Mono/PlayerSettingsWSA.cs","lineNumber":695,"sourceCode":"            public static string phoneSplashScreenImageScale140\n            {\n                get\n                {\n                    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.\");","sourceCodeStart":677,"sourceCodeEnd":713,"githubUrl":"https://github.com/Unity-Technologies/UnityCsReference/blob/225b0fbdb57cc17d094e8056b71f8314aba56f73/Editor/Mono/PlayerSettingsWSA.cs#L677-L713","documentation":"PlayerSettings.WSA.phoneSplashScreenImageScale240 was a string property that retrieved the Windows Phone splash screen image path at 240% scale. Unity consolidated per-scale visual asset getters into GetVisualAssetsImage(WSAImageType, WSAImageScale). The [Obsolete(..., true)] attribute blocks direct compilation; the NotSupportedException fires for reflection-based reads.","triggerScenarios":"Reading PlayerSettings.WSA.phoneSplashScreenImageScale240 via reflection (PropertyInfo.GetValue), dynamic dispatch, or a legacy compiled assembly.","commonSituations":"Editor tools inspecting WSA splash screen configuration across DPI scales. Legacy project validation scripts. Plugins built against pre-2018 Unity API.","solutions":["Replace the getter with PlayerSettings.WSA.GetVisualAssetsImage(WSAImageType.SplashScreenImage, WSAImageScale._240)","Migrate to UWP-supported scales (_100, _125, _150, _200, _400) since WSAImageScale._240 is itself deprecated for UWP","Update any reflection-based code to call the method API directly"],"exampleFix":"// before\nstring img = PlayerSettings.WSA.phoneSplashScreenImageScale240;\n\n// after\nstring img = PlayerSettings.WSA.GetVisualAssetsImage(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 GetVisualAssetsImage() instead.\");","typeGuard":null,"tryCatchPattern":"try { /* deprecated getter via reflection */ }\ncatch (NotSupportedException ex) when (ex.Message.Contains(\"GetVisualAssetsImage\"))\n{ Debug.LogError(\"Migrate to GetVisualAssetsImage().\"); }","preventionTips":["Migrate per-scale getters to GetVisualAssetsImage with appropriate WSAImageScale","Note that _240 scale is itself deprecated for UWP — use _200 instead"],"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"}