Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions 3 Source/UnrealEnginePython/Private/UEPyModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,10 @@ static PyMethodDef ue_PyUObject_methods[] = {

{ "get_levels", (PyCFunction)py_ue_get_levels, METH_VARARGS, "" },
{ "get_current_level", (PyCFunction)py_ue_get_current_level, METH_VARARGS, "" },

#if WITH_EDITORONLY_DATA
{ "set_current_level", (PyCFunction)py_ue_set_current_level, METH_VARARGS, "" },
#endif

#if WITH_EDITOR
{ "get_level_script_blueprint", (PyCFunction)py_ue_get_level_script_blueprint, METH_VARARGS, "" },
Expand Down
2 changes: 2 additions & 0 deletions 2 Source/UnrealEnginePython/Private/UObject/UEPyWorld.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ PyObject *py_ue_get_current_level(ue_PyUObject *self, PyObject * args)
Py_RETURN_UOBJECT(level);
}

#if WITH_EDITORONLY_DATA
PyObject *py_ue_set_current_level(ue_PyUObject *self, PyObject * args)
{

Expand All @@ -321,6 +322,7 @@ PyObject *py_ue_set_current_level(ue_PyUObject *self, PyObject * args)

Py_RETURN_FALSE;
}
#endif

#if WITH_EDITOR
PyObject *py_ue_get_level_script_blueprint(ue_PyUObject *self, PyObject * args)
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.