Unity-Technologies/UnityCsReference · error · NotSupportedException
PlayerSettings.packageLogo140 is deprecated. Use SetVisualAs
Error message
PlayerSettings.packageLogo140 is deprecated. Use SetVisualAssetsImage() instead.
What it means
PlayerSettings.WSA.packageLogo140 was a string property whose setter assigned the UWP package logo image at 140% 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:713
throw new NotSupportedException("PlayerSettings.phoneSplashScreenImageScale240 is deprecated. Use GetVisualAssetsImage() instead.");
}
set
{
throw new NotSupportedException("PlayerSettings.phoneSplashScreenImageScale240 is deprecated. Use SetVisualAssetsImage() instead.");
}
}
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[Obsolete("Use GetVisualAssetsImage()/SetVisualAssetsImage()", true)]
public static string packageLogo140
{
get
{
throw new NotSupportedException("PlayerSettings.packageLogo140 is deprecated. Use GetVisualAssetsImage() instead.");
}
set
{
throw new NotSupportedException("PlayerSettings.packageLogo140 is deprecated. Use SetVisualAssetsImage() instead.");
}
}
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[Obsolete("Use GetVisualAssetsImage()/SetVisualAssetsImage()", true)]
public static string packageLogo180
{
get
{
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)]View on GitHub (pinned to 225b0fbdb5)
Solutions
- Replace the setter with PlayerSettings.WSA.SetVisualAssetsImage(path, WSAImageType.PackageLogo, WSAImageScale._140)
- Migrate to UWP-supported scales (_100, _125, _150, _200) since _140 is deprecated for UWP
- Recompile all editor scripts and fix remaining [Obsolete] errors
Example fix
// before
PlayerSettings.WSA.packageLogo140 = "Assets/Logos/logo140.png";
// after
PlayerSettings.WSA.SetVisualAssetsImage("Assets/Logos/logo.png", WSAImageType.PackageLogo, WSAImageScale._150); Defensive patterns
Strategy: validation
Validate before calling
var prop = typeof(PlayerSettings.WSA).GetProperty("packageLogo140");
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(path, WSAImageType.PackageLogo, scale)
- Use UWP scales instead of deprecated _140
When it happens
Trigger: Assigning to PlayerSettings.WSA.packageLogo140 through reflection, dynamic keyword, or a pre-compiled plugin DLL.
Common situations: Build automation configuring the UWP package logo at multiple DPI scales. Project migration scripts from pre-2018 Unity. Third-party store deployment tools.
Related errors
- PlayerSettings.packageLogo140 is deprecated. Use GetVisualAs
- PlayerSettings.packageLogo180 is deprecated. Use GetVisualAs
- PlayerSettings.packageLogo180 is deprecated. Use SetVisualAs
- PlayerSettings.packageLogo240 is deprecated. Use GetVisualAs
- PlayerSettings.packageLogo240 is deprecated. Use SetVisualAs
AI-assisted analysis of Unity-Technologies/UnityCsReference@225b0fbdb5 (2026-08-13).
Data as JSON: /api/errors/f7a1e6deb6dfd77b.
Report an issue: GitHub.