This commit is contained in:
SoulliesOfficial
2025-08-27 21:45:18 -04:00
parent 131b182f43
commit 4031b29245
266 changed files with 26272 additions and 18257 deletions

View File

@@ -44,6 +44,24 @@ namespace stencilTestHelper
Debug.LogError("StencilValuesConfig: 不存在Key"+key);
return null;
}
public int GetKeyIndex(string key)
{
for (int i = 0; i < Config.Count; i++)
{
if (Config[i].key == key)
{
return i;
}
}
Debug.LogError("StencilValuesConfig: 不存在Key"+key);
return -1;
}
public string GetKeyByIndex(int index)
{
return Config[index].key;
}
public StencilValues this[string key]