Remove(string)
Removes the variable stored under the given name.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: Unity.Localization
- Assembly: UnityEngine.LocalizationRuntimeModule
public bool Remove(string name)
Parameters
The name of the variable to remove.
Returns
Type | Description |
|---|---|
| bool | |
Remarks
The name is whitespace-normalized the way LocalVariablesGroup.Add normalizes it. Does nothing when no variable matches.
Remove a variable by name.
Examples
using Unity.Localization;namespace Unity.Localization.Samples{ public class LocalVariablesGroupRemoveExample { public void Remove() { var group = new LocalVariablesGroup(); group.Add(new LocalizedString(), "subtitle"); group.Remove("subtitle"); } }}