Suggest a change
Success!
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
Close
Submission failed
For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.
Close
Declaration
public void Clear();
Description
Removes every variable from the group.
Leaves the group empty, so Smart String placeholders that referenced the removed variables no longer resolve.
<para>Remove all variables.</para>
using Unity.Localization;
namespace Unity.Localization.Samples
{
public class LocalVariablesGroupClearExample
{
public void Clear()
{
var group = new LocalVariablesGroup();
group.Add(new LocalizedString(), "subtitle");
group.Clear();
}
}
}