Unity-Technologies/UnityCsReference · error · NotSupportedException
PlayerSettings.storeTileSmallLogo140 is deprecated. Use SetV
Error message
PlayerSettings.storeTileSmallLogo140 is deprecated. Use SetVisualAssetsImage() instead.
What it means
PlayerSettings.WSA.storeTileSmallLogo140 is a deprecated property representing the small 44x44 square logo used in the Store listing, app list, and taskbar at 140% scale. Note: the 140% scale is itself deprecated in WSAImageScale (not used in Universal Windows Platform); prefer _100, _125, _150, _200, or _400. It is decorated with [Obsolete("Use GetVisualAssetsImage()/SetVisualAssetsImage()", true)], making direct access a compile-time error (CS0619). The set accessor additionally throws NotSupportedException at runtime to catch reflection-based or dynamically dispatched access. The replacement API is SetVisualAssetsImage(WSAImageType.UWPSquare44x44Logo, WSAImageScale._140) for this specific accessor.
Source
Thrown at Editor/Mono/PlayerSettingsWSA.cs:321
throw new NotSupportedException("PlayerSettings.storeTileSmallLogo is deprecated. Use GetVisualAssetsImage() instead.");
}
set
{
throw new NotSupportedException("PlayerSettings.storeTileSmallLogo is deprecated. Use SetVisualAssetsImage() instead.");
}
}
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[Obsolete("Use GetVisualAssetsImage()/SetVisualAssetsImage()", true)]
public static string storeTileSmallLogo140
{
get
{
throw new NotSupportedException("PlayerSettings.storeTileSmallLogo140 is deprecated. Use GetVisualAssetsImage() instead.");
}
set
{
throw new NotSupportedException("PlayerSettings.storeTileSmallLogo140 is deprecated. Use SetVisualAssetsImage() instead.");
}
}
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[Obsolete("Use GetVisualAssetsImage()/SetVisualAssetsImage()", true)]
public static string storeTileSmallLogo180
{
get
{
throw new NotSupportedException("PlayerSettings.storeTileSmallLogo180 is deprecated. Use GetVisualAssetsImage() instead.");
}
set
{
throw new NotSupportedException("PlayerSettings.storeTileSmallLogo180 is deprecated. Use SetVisualAssetsImage() instead.");
}
}
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]View on GitHub (pinned to 225b0fbdb5)
Solutions
- Replace the property assignment with PlayerSettings.WSA.SetVisualAssetsImage(imagePath, WSAImageType.UWPSquare44x44Logo, WSAImageScale._140).
- If the 140% scale is deprecated (80/140/180), switch to a UWP-supported scale such as WSAImageScale._100 or WSAImageScale._200.
- If the calling code is in a shared library, wrap the new call in a #if UNITY_2019_4_OR_NEWER (or appropriate version) preprocessor guard to maintain backward compatibility.
- Search the entire solution for all references to the deprecated property (including in .asmdef-referenced assemblies) to ensure no compile-time or reflection-based access remains.
Example fix
// before
PlayerSettings.WSA.storeTileSmallLogo140 = "Assets/Images/Logo.png";
// after
PlayerSettings.WSA.SetVisualAssetsImage(
"Assets/Images/Logo.png",
WSAImageType.UWPSquare44x44Logo,
WSAImageScale._140); Defensive patterns
Strategy: validation
Validate before calling
// Validate the property is not among the deprecated set before reflection access
var prop = typeof(PlayerSettings.WSA).GetProperty("storeTileSmallLogo140");
if (prop != null && prop.GetCustomAttribute<ObsoleteAttribute>()?.IsError == true)
{
// Use the replacement API instead
PlayerSettings.WSA.SetVisualAssetsImage(
imagePath, WSAImageType.UWPSquare44x44Logo, WSAImageScale._140);
} Try / catch
try
{
// Deprecated property access via reflection
typeof(PlayerSettings.WSA)
.GetProperty("storeTileSmallLogo140")?.SetValue(null, imagePath);
}
catch (NotSupportedException ex) when (ex.Message.Contains("deprecated"))
{
// Fallback to the replacement API
PlayerSettings.WSA.SetVisualAssetsImage(
imagePath, WSAImageType.UWPSquare44x44Logo, WSAImageScale._140);
} Prevention
- Treat compiler warnings CS0618/CS0619 as errors in your .csproj or ProjectSettings to catch deprecated PlayerSettings.WSA property usage before runtime.
- When upgrading Unity versions, run a full-solution grep for 'storeTile' and 'storeSmall' to identify all deprecated WSA visual-asset properties.
- Migrate all WSA image configuration to GetVisualAssetsImage/SetVisualAssetsImage in a single pass rather than property-by-property.
- Avoid reflection-based access to PlayerSettings.WSA properties; the [Obsolete(..., true)] attribute only protects compile-time callers, not reflection.
- Replace deprecated scale values (_80, _140, _180) with UWP-supported scales (_100, _125, _150, _200, _400) during the same migration.
When it happens
Trigger: Accessing PlayerSettings.WSA.storeTileSmallLogo140 via its set accessor. Assigning a value, e.g. PlayerSettings.WSA.storeTileSmallLogo140 = "Assets/Logo.png"; triggers the NotSupportedException from the set block. Compile-time access is blocked by the [Obsolete(..., true)] attribute (error CS0619). Runtime exceptions only surface when the property is reached through reflection, dynamic invocation, or IL that bypasses the compiler check.
Common situations: Upgrading a Unity project from a version that supported these Windows 8.1-era store image properties to a UWP-only build. Build scripts, CI/CD pipelines, or editor extensions that batch-configure WSA visual assets using the old individual-property API. Third-party plugins or asset store packages that reference PlayerSettings.WSA.storeTileSmallLogo140. Code migrated from Windows 8.1 Metro/WinRT templates that hardcoded DPI-scaled tile logos.
Related errors
- PlayerSettings.storeTileSmallLogo80 is deprecated. Use GetVi
- PlayerSettings.storeTileSmallLogo80 is deprecated. Use SetVi
- PlayerSettings.storeTileSmallLogo is deprecated. Use GetVisu
- PlayerSettings.storeTileSmallLogo is deprecated. Use SetVisu
- PlayerSettings.storeTileSmallLogo140 is deprecated. Use GetV
AI-assisted analysis of Unity-Technologies/UnityCsReference@225b0fbdb5 (2026-08-13).
Data as JSON: /api/errors/83a702bc9dce52b4.
Report an issue: GitHub.