chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 12:49:17 +08:00
commit 7243d5823b
2201 changed files with 257291 additions and 0 deletions
@@ -0,0 +1,27 @@
using System;
using System.Collections.Generic;
using System.Linq;
using MCPForUnity.Editor.Helpers;
using MCPForUnity.Editor.Tools.Cameras;
using Newtonsoft.Json.Linq;
using UnityEngine;
namespace MCPForUnity.Editor.Resources.Scene
{
[McpForUnityResource("get_cameras")]
public static class CamerasResource
{
public static object HandleCommand(JObject @params)
{
try
{
return CameraControl.ListCameras(@params ?? new JObject());
}
catch (Exception e)
{
McpLog.Error($"[CamerasResource] Error listing cameras: {e}");
return new ErrorResponse($"Error listing cameras: {e.Message}");
}
}
}
}