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

  1. Replace the setter with PlayerSettings.WSA.SetVisualAssetsImage(path, WSAImageType.PackageLogo, WSAImageScale._140)
  2. Migrate to UWP-supported scales (_100, _125, _150, _200) since _140 is deprecated for UWP
  3. 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

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


AI-assisted analysis of Unity-Technologies/UnityCsReference@225b0fbdb5 (2026-08-13). Data as JSON: /api/errors/f7a1e6deb6dfd77b. Report an issue: GitHub.