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

Method Tick

Source/UnrealEnginePython/Public/PythonDelegate.cpp:96–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94}
95
96bool UPythonDelegate::Tick(float DeltaTime)
97{
98 FScopePythonGIL gil;
99 PyObject *ret = PyObject_CallFunction(py_callable, (char *)"f", DeltaTime);
100 if (!ret) {
101 unreal_engine_py_log_error();
102 return false;
103 }
104 if (PyObject_IsTrue(ret)) {
105 Py_DECREF(ret);
106 return true;
107 }
108 Py_DECREF(ret);
109 return false;
110}
111
112#if WITH_EDITOR
113void UPythonDelegate::PyFOnAssetPostImport(UFactory *factory, UObject *u_object)

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected