Remove(string)
Removes any alias registered under the given address.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Method
- Namespace: Unity.Localization.Providers
- Assembly: UnityEngine.LocalizationRuntimeModule
public bool Remove(string address)
Parameters
The address to clear.
Returns
Type | Description |
|---|---|
| bool | |
Remarks
An empty or null is treated as absent and returns . After removal, the address resolves as a plain path again.
addressfalseResourcesRemove an alias that was registered earlier.
Examples
using Unity.Localization.Providers;using UnityEngine;namespace Unity.Localization.Samples{ public class ResourceFolderProviderRemoveExample { public void Run() { var provider = new ResourceFolderProvider(); provider.AddAlias("6f1e2c0a9b3d4e5f", "UI/Logo"); Debug.Log(provider.Remove("6f1e2c0a9b3d4e5f")); // True } }}