{"record":{"id":"7c6e193182cdde73","repo":"Unity-Technologies/UnityCsReference","slug":"playersettings-packagelogo240-is-deprecated-use-s","errorCode":null,"errorMessage":"PlayerSettings.packageLogo240 is deprecated. Use SetVisualAssetsImage() instead.","messagePattern":"PlayerSettings\\.packageLogo240 is deprecated\\. Use SetVisualAssetsImage\\(\\) instead\\.","errorType":"exception","errorClass":"NotSupportedException","httpStatus":null,"severity":"error","filePath":"Editor/Mono/PlayerSettingsWSA.cs","lineNumber":741,"sourceCode":"                    throw new NotSupportedException(\"PlayerSettings.packageLogo180 is deprecated. Use GetVisualAssetsImage() instead.\");\n                }\n                set\n                {\n                    throw new NotSupportedException(\"PlayerSettings.packageLogo180 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 packageLogo240\n            {\n                get\n                {\n                    throw new NotSupportedException(\"PlayerSettings.packageLogo240 is deprecated. Use GetVisualAssetsImage() instead.\");\n                }\n                set\n                {\n                    throw new NotSupportedException(\"PlayerSettings.packageLogo240 is deprecated. Use SetVisualAssetsImage() instead.\");\n                }\n            }\n\n            [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]\n            [Obsolete(\"PlayerSettings.enableLowLatencyPresentationAPI is deprecated. It is now always enabled.\", true)]\n            public static bool enableLowLatencyPresentationAPI\n            {\n                get\n                {\n                    return true;\n                }\n                set\n                {\n                }\n            }\n        }\n    }\n}","sourceCodeStart":723,"sourceCodeEnd":759,"githubUrl":"https://github.com/Unity-Technologies/UnityCsReference/blob/225b0fbdb57cc17d094e8056b71f8314aba56f73/Editor/Mono/PlayerSettingsWSA.cs#L723-L759","documentation":"PlayerSettings.WSA.packageLogo240 was a string property whose setter assigned the UWP package logo image at 240% scale. Unity unified all per-scale visual asset setters into 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.packageLogo240 through reflection, dynamic keyword, or a pre-compiled plugin DLL.","commonSituations":"Build automation configuring high-DPI package logo assets. Deployment scripts from pre-UWP Unity versions. Third-party plugin assemblies compiled against older API.","solutions":["Replace the setter with PlayerSettings.WSA.SetVisualAssetsImage(path, WSAImageType.PackageLogo, WSAImageScale._240)","Migrate to UWP-supported scales (_100, _125, _150, _200) since _240 is deprecated for UWP","Recompile all editor scripts and fix remaining [Obsolete] errors"],"exampleFix":"// before\nPlayerSettings.WSA.packageLogo240 = \"Assets/Logos/logo240.png\";\n\n// after\nPlayerSettings.WSA.SetVisualAssetsImage(\"Assets/Logos/logo.png\", WSAImageType.PackageLogo, WSAImageScale._200);","handlingStrategy":"validation","validationCode":"var prop = typeof(PlayerSettings.WSA).GetProperty(\"packageLogo240\");\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 packageLogo setters with SetVisualAssetsImage before Unity upgrade","Use UWP scales instead of deprecated _240"],"tags":["unity","wsa","uwp","deprecated","editor-scripting","playersettings","packagelogo"],"backgroundTag":null,"analyzedSha":"225b0fbdb57cc17d094e8056b71f8314aba56f73","analyzedAt":"2026-08-13T19:07:19.849Z","schemaVersion":2},"datasetVersion":"2026-08-13T19:17:28.613Z"}