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

Function py_ue_get_world

Source/UnrealEnginePython/Private/UEPyWorld.cpp:103–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103PyObject *py_ue_get_world(ue_PyUObject *self, PyObject * args) {
104
105 ue_py_check(self);
106
107 UWorld *world = ue_get_uworld(self);
108 if (!world)
109 return PyErr_Format(PyExc_Exception, "unable to retrieve UWorld from uobject");
110
111 ue_PyUObject *ret = ue_get_python_wrapper(world);
112 if (!ret)
113 return PyErr_Format(PyExc_Exception, "PyUObject is in invalid state");
114 Py_INCREF(ret);
115 return (PyObject *)ret;
116
117}
118
119PyObject *py_ue_has_world(ue_PyUObject *self, PyObject * args) {
120

Callers

nothing calls this directly

Calls 2

ue_get_uworldFunction · 0.85
ue_get_python_wrapperFunction · 0.85

Tested by

no test coverage detected