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

Method Tick

Source/UnrealEnginePython/Public/PyCharacter.cpp:94–114  ·  view source on GitHub ↗

Called every frame

Source from the content-addressed store, hash-verified

92
93// Called every frame
94void APyCharacter::Tick(float DeltaTime)
95{
96
97
98 Super::Tick(DeltaTime);
99
100 if (!py_character_instance)
101 return;
102
103 FScopePythonGIL gil;
104
105 // no need to check for method availability, we did it in begin_play
106
107 PyObject *ret = PyObject_CallMethod(py_character_instance, (char *)"tick", (char *)"f", DeltaTime);
108 if (!ret) {
109 unreal_engine_py_log_error();
110 return;
111 }
112 Py_DECREF(ret);
113
114}
115
116void APyCharacter::CallPyCharacterMethod(FString method_name, FString args)
117{

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected