Added Unity project files

This commit is contained in:
2026-06-07 16:58:24 +01:00
parent 3cc05d260b
commit 23bbcab156
3942 changed files with 453676 additions and 0 deletions

View File

@ -0,0 +1,28 @@
namespace VRC.SDK3.ClientSim
{
public class ClientSimSessionState : IClientSimSessionState
{
private const string SESSION_KEY_PREFIX = "com.vrchat.clientsim.session";
private string GetSessionKey(string key)
{
return $"{SESSION_KEY_PREFIX}.{key}";
}
public bool GetBool(string key)
{
#if UNITY_EDITOR
return UnityEditor.SessionState.GetBool(GetSessionKey(key), false);
#else
return false;
#endif
}
public void SetBool(string key, bool value)
{
#if UNITY_EDITOR
UnityEditor.SessionState.SetBool(GetSessionKey(key), value);
#endif
}
}
}