| Parameter | Description |
|---|---|
| a | The first key. |
| b | The second key. |
bool
true if the keys identify different assets; otherwise, false.
Compares two keys for inequality.
The negation of AssetKey.Equals: the keys differ when their address, sub-asset name, or
AssetKey.Type differ.
<para>Distinguish two keys that share an address but differ by type.</para>
using Unity.Localization.Providers; using UnityEngine;
namespace Unity.Localization.Samples { public class AssetKeyInequalityOperatorExample { public void Run() { var texture = new AssetKey("UI/Logo", typeof(Texture2D)); var sprite = new AssetKey("UI/Logo", typeof(Sprite));
Debug.Log(texture != sprite); // True: same address, different type } } }