chore: import upstream snapshot with attribution
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using MCPForUnity.Editor.Helpers;
|
||||
using MCPForUnity.Editor.Tools.Graphics;
|
||||
using Newtonsoft.Json.Linq;
|
||||
|
||||
namespace MCPForUnity.Editor.Resources.Scene
|
||||
{
|
||||
[McpForUnityResource("get_renderer_features")]
|
||||
public static class RendererFeaturesResource
|
||||
{
|
||||
public static object HandleCommand(JObject @params)
|
||||
{
|
||||
try
|
||||
{
|
||||
return RendererFeatureOps.ListFeatures(@params ?? new JObject());
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
McpLog.Error($"[RendererFeaturesResource] Error: {e}");
|
||||
return new ErrorResponse($"Error listing renderer features: {e.Message}");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user