기술 자료

Unity Engine

Unity Engine

Remove(string)

Removes any alias registered under the given address.
읽는 시간 1분최근 업데이트: 한 달 전

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 } }}