| Parameter | Description |
|---|---|
| address | The address to test. |
bool
true if an asset is registered under the address; otherwise, false.
Checks whether an asset is registered under the given address.
An empty or null address returns false.
<para>Test whether an address is registered before and after adding it.</para>
using Unity.Localization.Providers; using UnityEngine;
namespace Unity.Localization.Samples { public class ReferencedAssetProviderContainsExample { public void Run() { var provider = new ReferencedAssetProvider();
Debug.Log(provider.Contains("UI/Logo")); // False
provider.Add("UI/Logo", new Texture2D(2, 2));
Debug.Log(provider.Contains("UI/Logo")); // True } } }