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

Method Tick

Source/UnrealEnginePython/Public/PyPawn.cpp:91–107  ·  view source on GitHub ↗

Called every frame

Source from the content-addressed store, hash-verified

89
90// Called every frame
91void APyPawn::Tick(float DeltaTime)
92{
93 Super::Tick(DeltaTime);
94
95 if (!py_pawn_instance)
96 return;
97
98 FScopePythonGIL gil;
99
100 PyObject *ret = PyObject_CallMethod(py_pawn_instance, (char *)"tick", (char *)"f", DeltaTime);
101 if (!ret) {
102 unreal_engine_py_log_error();
103 return;
104 }
105 Py_DECREF(ret);
106
107}
108
109
110void APyPawn::CallPythonPawnMethod(FString method_name)

Callers 1

py_ue_world_tickFunction · 0.45

Calls 1

Tested by

no test coverage detected