ultimate-unreal-engine-mcp 0.1.20 → 0.1.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultimate-unreal-engine-mcp",
3
- "version": "0.1.20",
3
+ "version": "0.1.21",
4
4
  "description": "MCP server giving AI assistants full access to Unreal Engine 5.7 projects",
5
5
  "type": "module",
6
6
  "engines": {
@@ -27,6 +27,7 @@ public class MCPBridgeEditor : ModuleRules
27
27
  // Core engine (always present)
28
28
  "CoreUObject",
29
29
  "Engine",
30
+ "RenderCore",
30
31
  "UnrealEd",
31
32
  "EditorSubsystem",
32
33
  "Json",
@@ -33,6 +33,7 @@
33
33
  #include "HAL/FileManager.h"
34
34
  #include "Misc/FileHelper.h"
35
35
  #include "ImageUtils.h"
36
+ #include "RenderingThread.h"
36
37
  #include "Engine/World.h"
37
38
  #include "GameFramework/Actor.h"
38
39
  #include "EngineUtils.h"
@@ -217,6 +218,7 @@ static FString TakeScreenshotToFile(int32 Width, int32 Height)
217
218
  // then Draw executes the render pipeline synchronously.
218
219
  ViewportClient->Viewport->Invalidate();
219
220
  ViewportClient->Viewport->Draw();
221
+ FlushRenderingCommands();
220
222
 
221
223
  // Read pixels from the viewport framebuffer.
222
224
  TArray<FColor> Pixels;