Removes every key from the shared data.
This clears the shared key table only. The entries in each per-locale ResourceTable are left untouched,
so clear the shared data and every locale table together to avoid orphaning translations.
Additional resources: SharedTableData.RemoveKey, SharedTableData.AddKey
<para>Remove all keys from the shared data.</para>
using Unity.Localization; using UnityEngine;
namespace Unity.Localization.Samples { public class SharedTableDataClearExample { public void Run() { var sharedData = ScriptableObject.CreateInstance<SharedTableData>(); sharedData.AddKey("GREETING"); sharedData.AddKey("FAREWELL");
sharedData.Clear();
Debug.Log(sharedData.Entries.Count); // 0 } } }