Called every frame
| 92 | |
| 93 | // Called every frame |
| 94 | void 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 | |
| 116 | void APyCharacter::CallPyCharacterMethod(FString method_name, FString args) |
| 117 | { |
nothing calls this directly
no test coverage detected