Initial commit: AIGame Unity client with URP, HybridCLR, YooAsset and tooling.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
udx
2026-09-21 14:21:07 +08:00
co-authored by Cursor
commit f3f66ab063
931 changed files with 112366 additions and 0 deletions
@@ -0,0 +1,38 @@
using NUnit.Framework;
using Unity.Pipeline.Editor.Commands.Observability;
namespace Unity.Pipeline.Tests.Editor.Observability
{
/// <summary>
/// Tests for get_performance_stats, exercised directly and via PipelineClient. The console
/// commands live in the runtime assembly; their tests are in ConsoleCommandTests.
/// </summary>
class ObservabilityCommandsTests
{
[Test]
public void GetPerformanceStats_ReturnsMemory()
{
var stats = PerformanceCommands.GetPerformanceStats();
Assert.IsNotNull(stats, "Performance stats should not be null");
Assert.IsNotNull(stats.Memory, "Memory stats should be present");
Assert.Greater(stats.Memory.TotalAllocatedBytes, 0,
"Total allocated memory should always be positive at runtime");
Assert.IsNotNull(stats.Render, "Render stats should be present");
Assert.IsNotNull(stats.FrameTiming, "Frame timing block should be present");
}
[Test]
public void GetPerformanceStats_ViaClient_Succeeds()
{
using (var server = new PipelineTestServer())
{
var response = server.Execute("get_performance_stats", null);
Assert.IsTrue(response.IsSuccess, $"get_performance_stats should succeed: {response.Error}");
Assert.IsTrue(response.HasValidJson, "Response should have valid JSON");
Assert.IsTrue(response.JsonResponse.ContainsKey("result"), "Should have result field");
}
}
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 957e98903b1514946a078dd6a659f4f3
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: