using System; using System.Collections.Generic; namespace UnityEngine.Experimental.UIElements { // Token: 0x0200035E RID: 862 internal sealed class VisualElementUtils { // Token: 0x060034FD RID: 13565 RVA: 0x00056A88 File Offset: 0x00054C88 public static string GetUniqueName(string nameBase) { string text = nameBase; int num = 2; while (VisualElementUtils.s_usedNames.Contains(text)) { text = nameBase + num; num++; } VisualElementUtils.s_usedNames.Add(text); return text; } // Token: 0x04000B35 RID: 2869 private static readonly HashSet s_usedNames = new HashSet(); } }