Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Remove(string)

Removes any alias registered under the given address.
Read time 1 minuteLast updated 13 days ago

Definition

public bool Remove(string address)

Parameters

address

The address to clear.

Returns

Type

Description

bool
true
if an alias was removed; otherwise,
false
.

Remarks

An empty or null
address
is treated as absent and returns
false
. After removal, the address resolves as a plain
Resources
path again.
Remove 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 } }}