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

Method Tick

Source/UnrealEnginePython/Public/PyActor.cpp:92–111  ·  view source on GitHub ↗

Called every frame

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected