MCPcopy Create free account
hub / github.com/20tab/UnrealEnginePython / CallPythonPawnMethod

Method CallPythonPawnMethod

Source/UnrealEnginePython/Public/PyPawn.cpp:110–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108
109
110void APyPawn::CallPythonPawnMethod(FString method_name)
111{
112 if (!py_pawn_instance)
113 return;
114
115 FScopePythonGIL gil;
116
117 PyObject *ret = PyObject_CallMethod(py_pawn_instance, TCHAR_TO_UTF8(*method_name), NULL);
118 if (!ret) {
119 unreal_engine_py_log_error();
120 return;
121 }
122 Py_DECREF(ret);
123}
124
125bool APyPawn::CallPythonPawnMethodBool(FString method_name)
126{

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected