Removes every entry from this table.
Clears only this locale's values. The shared keys in ResourceTable.SharedData and the entries of the other
locale tables are untouched.
Additional resources: ResourceTable.RemoveEntry, ResourceTable.Entries, SharedTableData
<para>Clear all of a table's per-locale values.</para>
using Unity.Localization; using UnityEngine;
namespace Unity.Localization.Samples { public class ResourceTableRemoveAllEntriesExample { public void Run() { var shared = ScriptableObject.CreateInstance<SharedTableData>(); var table = ScriptableObject.CreateInstance<ResourceTable>(); table.SharedData = shared; table.LocaleIdentifier = "en";
table.AddStringEntry("Greeting", "Hello"); table.AddStringEntry("Farewell", "Goodbye");
table.RemoveAllEntries(); Debug.Log(table.Entries.Count); // 0 } } }