| Parameter | Description |
|---|---|
| id | The stable key id. |
bool
true when the key's values are Smart Strings; otherwise, false.
Returns whether a key is marked as a Smart String.
Equivalent to testing the SharedEntryFlags.Smart flag on the key's entry. Returns
false when the id is absent.
Additional resources: SharedEntryFlags, SharedTableData.SharedTableEntry.IsSmart
<para>Check whether a key uses Smart Strings.</para>
using Unity.Localization; using UnityEngine;
namespace Unity.Localization.Samples { public class SharedTableDataIsSmartExample { public void Run() { var sharedData = ScriptableObject.CreateInstance<SharedTableData>(); var entry = sharedData.AddKey("GREETING"); entry.IsSmart = true;
Debug.Log(sharedData.IsSmart(entry.Id)); // True } } }