| Parameter | Description |
|---|---|
| provider | The provider to remove. |
bool
true if the provider was present and removed; otherwise, false.
Removes a provider from the chain.
When the removed provider was the AssetProvider.Selected one, the selection moves to the first remaining
provider, or null when the chain becomes empty.
<para>Remove a provider and confirm it is gone.</para>
using Unity.Localization.Providers; using UnityEngine;
namespace Unity.Localization.Samples { public class AssetProviderRemoveProviderExample { public void Run() { var chain = new AssetProvider(); var resources = new ResourceFolderProvider(); chain.AddProvider(resources);
Debug.Log(chain.RemoveProvider(resources)); // True Debug.Log(chain.GetProvider<ResourceFolderProvider>() == null); // True } } }