#pragma once #include "UObject/Object.h" #include "UObject/ScriptMacros.h" #include "PythonScript.generated.h" UCLASS(MinimalAPI) class UPythonScript : public UObject { GENERATED_BODY() public: UPROPERTY(EditAnywhere, Category = "Python") FString ScriptPath; UPROPERTY(EditAnywhere, Category = "Python") FString FunctionToCall; UPROPERTY(EditAnywhere, Category = "Python") TArray FunctionArgs; UFUNCTION() void Run(); void CallSpecificFunctionWithArgs(); };