ultimate-unreal-engine-mcp 0.1.16 → 0.1.17
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
|
@@ -301,16 +301,11 @@ void RegisterViewportCommands(FMCPCommandRouter& Router)
|
|
|
301
301
|
}
|
|
302
302
|
}
|
|
303
303
|
|
|
304
|
-
//
|
|
305
|
-
|
|
306
|
-
GScreenshotResolutionY = Height;
|
|
307
|
-
FScreenshotRequest::RequestScreenshot(false /* bShowUI */);
|
|
308
|
-
|
|
309
|
-
// Return the directory where UE will write the screenshot file.
|
|
310
|
-
const FString ShotDir = FPaths::ScreenShotDir();
|
|
304
|
+
// Use TakeScreenshotToFile which writes to MCPScreenshots/ with a known path.
|
|
305
|
+
const FString FilePath = TakeScreenshotToFile(Width, Height);
|
|
311
306
|
|
|
312
307
|
TSharedPtr<FJsonObject> Data = MakeShared<FJsonObject>();
|
|
313
|
-
Data->SetStringField(TEXT("
|
|
308
|
+
Data->SetStringField(TEXT("file_path"), FilePath);
|
|
314
309
|
Data->SetNumberField(TEXT("width"), static_cast<double>(Width));
|
|
315
310
|
Data->SetNumberField(TEXT("height"), static_cast<double>(Height));
|
|
316
311
|
Data->SetBoolField(TEXT("queued"), true);
|