Clear()
Removes every variable from the group.
Read time 1 minuteLast updated 11 days ago
Definition
- Type: Method
- Namespace: Unity.Localization
- Assembly: UnityEngine.LocalizationRuntimeModule
public void Clear()
Remarks
Leaves the group empty, so Smart String placeholders that referenced the removed variables no longer resolve.
Remove all variables.
Examples
using Unity.Localization;namespace Unity.Localization.Samples{ public class LocalVariablesGroupClearExample { public void Clear() { var group = new LocalVariablesGroup(); group.Add(new LocalizedString(), "subtitle"); group.Clear(); } }}