RemoveCollection(string)
Removes a collection so this provider no longer serves its addresses.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Method
- Namespace: Unity.Localization.Providers.FileTables
- Assembly: UnityEngine.LocalizationRuntimeModule
public bool RemoveCollection(string guid)
Parameters
The guid of the collection to remove.
Returns
Type | Description |
|---|---|
| bool | |
Remarks
Call this when a collection is deleted or moved to another provider. A record left behind keeps claiming the collection's name as an address prefix, so data files left in the output folder still resolve to it and a surviving collection whose name starts with the same text can be parsed against the stale prefix. An empty or null guid is treated as absent. This does not delete any generated file; regenerating prunes those.
Additional Resources: FileTableProvider.AddCollection, FileTableProvider.ClearCollections()
Stop serving a collection.
Examples
using Unity.Localization.Providers.FileTables;namespace Unity.Localization.Samples{ public static class FileTableProviderRemoveCollectionExample { public static bool StopServing(JsonResourceProvider provider, string collectionGuid) { return provider.RemoveCollection(collectionGuid); } }}