{"record":{"id":"8fb4e1ff673da59d","repo":"Unity-Technologies/UnityCsReference","slug":"playersettings-phonesplashscreenimagescale140-is-d","errorCode":null,"errorMessage":"PlayerSettings.phoneSplashScreenImageScale140 is deprecated. Use GetVisualAssetsImage() instead.","messagePattern":"PlayerSettings\\.phoneSplashScreenImageScale140 is deprecated\\. Use GetVisualAssetsImage\\(\\) instead\\.","errorType":"exception","errorClass":"NotSupportedException","httpStatus":null,"severity":"error","filePath":"Editor/Mono/PlayerSettingsWSA.cs","lineNumber":681,"sourceCode":"            public static string phoneSplashScreenImage\n            {\n                get\n                {\n                    throw new NotSupportedException(\"PlayerSettings.phoneSplashScreenImage is deprecated. Use GetVisualAssetsImage() instead.\");\n                }\n                set\n                {\n                    throw new NotSupportedException(\"PlayerSettings.phoneSplashScreenImage 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 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.\");","sourceCodeStart":663,"sourceCodeEnd":699,"githubUrl":"https://github.com/Unity-Technologies/UnityCsReference/blob/225b0fbdb57cc17d094e8056b71f8314aba56f73/Editor/Mono/PlayerSettingsWSA.cs#L663-L699","documentation":"PlayerSettings.WSA.phoneSplashScreenImageScale140 was a string property that retrieved the Windows Phone splash screen image path at 140% scale. Unity replaced all per-scale visual asset getters with GetVisualAssetsImage(WSAImageType, WSAImageScale). The [Obsolete(..., true)] attribute blocks direct compilation; the NotSupportedException fires at runtime for reflection-based reads.","triggerScenarios":"Reading PlayerSettings.WSA.phoneSplashScreenImageScale140 via reflection (PropertyInfo.GetValue), dynamic dispatch, or a legacy compiled assembly that calls the getter.","commonSituations":"Editor tools that read and display configured WSA splash screen assets at multiple DPI scales. Migration of project settings from Windows Phone 8.1 to UWP. Legacy CI scripts that log or validate splash screen configuration.","solutions":["Replace the getter call with PlayerSettings.WSA.GetVisualAssetsImage(WSAImageType.SplashScreenImage, WSAImageScale._140)","Migrate to a UWP-supported scale (_100, _125, _150, _200, _400) since WSAImageScale._140 is itself deprecated for UWP","If using reflection, call the method directly instead of reflecting over removed properties"],"exampleFix":"// before\nstring img = PlayerSettings.WSA.phoneSplashScreenImageScale140;\n\n// after\nstring img = PlayerSettings.WSA.GetVisualAssetsImage(WSAImageType.SplashScreenImage, WSAImageScale._100);","handlingStrategy":"validation","validationCode":"// Before reflecting over the property, check if it's deprecated\nvar prop = typeof(PlayerSettings.WSA).GetProperty(\"phoneSplashScreenImageScale140\");\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":["Avoid reflection over PlayerSettings.WSA properties — use the documented method API","When upgrading Unity, compile-test all editor scripts to surface [Obsolete] errors"],"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"}