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,51 @@
#if UNITY_EDITOR
using UnityEditor.PackageManager;
namespace VRC.SDK3.ClientSim
{
public static class ClientSimResourceLoader
{
private const string PACKAGE_PATH = "Packages/com.vrchat.clientsim";
public static PackageInfo GetPackageInfo()
{
return PackageInfo.FindForAssetPath(PACKAGE_PATH);
}
public static string GetVersion()
{
var package = GetPackageInfo();
if (package != null)
{
return package.version;
}
return "";
}
public static string GetPackagePath()
{
var package = GetPackageInfo();
if (package != null)
{
return package.assetPath;
}
return "";
}
public static string GetResolvePath()
{
var package = GetPackageInfo();
if (package != null)
{
return package.resolvedPath;
}
// TODO find package path based on known asset in the case where a user installs ClientSim not as a package.
return "";
}
}
}
#endif