Version: Unity 6.7 Alpha (6000.7)
LanguageEnglish
  • C#

ResourceFolderProvider.Remove

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public bool Remove(string address);

Parameters

Parameter Description
address The address to clear.

Returns

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

Description

Removes any alias registered under the given address.

An empty or null address is treated as absent and returns false. After removal, the address resolves as a plain Resources path again.

<para>Remove an alias that was registered earlier.</para>

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