Unity-Technologies/UnityCsReference · error · NotSupportedException
PlayerSettings.packageLogo240 is deprecated. Use SetVisualAs
Error message
PlayerSettings.packageLogo240 is deprecated. Use SetVisualAssetsImage() instead.
What it means
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.
Source
Thrown at Editor/Mono/PlayerSettingsWSA.cs:741
throw new NotSupportedException("PlayerSettings.packageLogo180 is deprecated. Use GetVisualAssetsImage() instead.");
}
set
{
throw new NotSupportedException("PlayerSettings.packageLogo180 is deprecated. Use SetVisualAssetsImage() instead.");
}
}
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[Obsolete("Use GetVisualAssetsImage()/SetVisualAssetsImage()", true)]
public static string packageLogo240
{
get
{
throw new NotSupportedException("PlayerSettings.packageLogo240 is deprecated. Use GetVisualAssetsImage() instead.");
}
set
{
throw new NotSupportedException("PlayerSettings.packageLogo240 is deprecated. Use SetVisualAssetsImage() instead.");
}
}
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[Obsolete("PlayerSettings.enableLowLatencyPresentationAPI is deprecated. It is now always enabled.", true)]
public static bool enableLowLatencyPresentationAPI
{
get
{
return true;
}
set
{
}
}
}
}
}View on GitHub (pinned to 225b0fbdb5)
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
Example fix
// before
PlayerSettings.WSA.packageLogo240 = "Assets/Logos/logo240.png";
// after
PlayerSettings.WSA.SetVisualAssetsImage("Assets/Logos/logo.png", WSAImageType.PackageLogo, WSAImageScale._200); Defensive patterns
Strategy: validation
Validate before calling
var prop = typeof(PlayerSettings.WSA).GetProperty("packageLogo240");
if (prop?.GetCustomAttribute<System.ObsoleteAttribute>()?.IsError == true)
Debug.LogError("Property is obsolete. Use SetVisualAssetsImage() instead."); Try / catch
try { /* deprecated setter via reflection */ }
catch (NotSupportedException ex) when (ex.Message.Contains("SetVisualAssetsImage"))
{ Debug.LogError("Migrate to SetVisualAssetsImage()."); } Prevention
- Replace all packageLogo setters with SetVisualAssetsImage before Unity upgrade
- Use UWP scales instead of deprecated _240
When it happens
Trigger: Assigning to PlayerSettings.WSA.packageLogo240 through reflection, dynamic keyword, or a pre-compiled plugin DLL.
Common situations: Build automation configuring high-DPI package logo assets. Deployment scripts from pre-UWP Unity versions. Third-party plugin assemblies compiled against older API.
Related errors
- PlayerSettings.packageLogo140 is deprecated. Use GetVisualAs
- PlayerSettings.packageLogo140 is deprecated. Use SetVisualAs
- PlayerSettings.packageLogo180 is deprecated. Use GetVisualAs
- PlayerSettings.packageLogo180 is deprecated. Use SetVisualAs
- PlayerSettings.packageLogo240 is deprecated. Use GetVisualAs
AI-assisted analysis of Unity-Technologies/UnityCsReference@225b0fbdb5 (2026-08-13).
Data as JSON: /api/errors/7c6e193182cdde73.
Report an issue: GitHub.