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

Function ue_get_actor

Source/UnrealEnginePython/Private/UEPyModule.cpp:1214–1224  ·  view source on GitHub ↗

retrieve actor from component (if possible)

Source from the content-addressed store, hash-verified

1212
1213// retrieve actor from component (if possible)
1214AActor *ue_get_actor(ue_PyUObject *py_obj) {
1215 if (py_obj->ue_object->IsA<AActor>()) {
1216 return (AActor *)py_obj->ue_object;
1217 }
1218
1219 if (py_obj->ue_object->IsA<UActorComponent>()) {
1220 UActorComponent *tmp_component = (UActorComponent *)py_obj->ue_object;
1221 return tmp_component->GetOwner();
1222 }
1223 return nullptr;
1224}
1225
1226// convert a property to a python object
1227PyObject *ue_py_convert_property(UProperty *prop, uint8 *buffer) {

Callers 15

py_ue_actor_componentsFunction · 0.85
py_ue_get_actor_velocityFunction · 0.85
py_ue_set_actor_labelFunction · 0.85
py_ue_get_actor_locationFunction · 0.85
py_ue_get_actor_scaleFunction · 0.85
py_ue_get_actor_forwardFunction · 0.85
py_ue_get_actor_rightFunction · 0.85
py_ue_get_actor_upFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected