#include "PythonBlueprintFunctionLibrary.h" void UPythonBlueprintFunctionLibrary::ExecutePythonScript(FString script) { FUnrealEnginePythonModule &PythonModule = FModuleManager::GetModuleChecked("UnrealEnginePython"); PythonModule.RunFile(TCHAR_TO_UTF8(*script)); } void UPythonBlueprintFunctionLibrary::ExecutePythonString(const FString& PythonCmd) { FUnrealEnginePythonModule &PythonModule = FModuleManager::GetModuleChecked("UnrealEnginePython"); PythonModule.RunString(TCHAR_TO_UTF8(*PythonCmd)); }