This commit is contained in:
niko
2026-06-04 11:42:34 +02:00
parent f39ba70a9f
commit e720b98cd1
7488 changed files with 2493818 additions and 0 deletions
@@ -0,0 +1,26 @@
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<string> s_usedNames = new HashSet<string>();
}
}