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

Function py_ue_get_owner

Source/UnrealEnginePython/Private/UEPyActor.cpp:205–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203#endif
204
205PyObject *py_ue_get_owner(ue_PyUObject *self, PyObject * args) {
206
207 ue_py_check(self);
208
209 if (!self->ue_object->IsA<UActorComponent>()) {
210 return PyErr_Format(PyExc_Exception, "uobject is not a component");
211 }
212
213 UActorComponent *component = (UActorComponent *)self->ue_object;
214
215 ue_PyUObject *ret = ue_get_python_wrapper(component->GetOwner());
216 if (!ret)
217 return PyErr_Format(PyExc_Exception, "uobject is in invalid state");
218 Py_INCREF(ret);
219 return (PyObject *)ret;
220}
221
222PyObject *py_ue_register_component(ue_PyUObject *self, PyObject * args) {
223

Callers

nothing calls this directly

Calls 1

ue_get_python_wrapperFunction · 0.85

Tested by

no test coverage detected