| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -616,6 +616,7 @@ static PyMethodDef ue_PyUObject_methods[] = { | |||
| 616 | 616 | { "save_config", (PyCFunction)py_ue_save_config, METH_VARARGS, "" }, | |
| 617 | 617 | { "get_actor_label", (PyCFunction)py_ue_get_actor_label, METH_VARARGS, "" }, | |
| 618 | 618 | { "set_actor_label", (PyCFunction)py_ue_set_actor_label, METH_VARARGS, "" }, | |
| 619 | + { "set_actor_hidden_in_game", (PyCFunction)py_ue_set_actor_hidden_in_game, METH_VARARGS, "" }, | ||
| 619 | 620 | ||
| 620 | 621 | { "get_editor_world_counterpart_actor", (PyCFunction)py_ue_get_editor_world_counterpart_actor, METH_VARARGS, "" }, | |
| 621 | 622 | { "component_type_registry_invalidate_class", (PyCFunction)py_ue_component_type_registry_invalidate_class, METH_VARARGS, "" }, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -261,6 +261,35 @@ PyObject *py_ue_set_actor_label(ue_PyUObject *self, PyObject * args) | |||
| 261 | 261 | Py_RETURN_NONE; | |
| 262 | 262 | } | |
| 263 | 263 | ||
| 264 | + PyObject *py_ue_set_actor_hidden_in_game(ue_PyUObject *self, PyObject * args) | ||
| 265 | + { | ||
| 266 | + | ||
| 267 | + ue_py_check(self); | ||
| 268 | + | ||
| 269 | + AActor *actor = ue_get_actor(self); | ||
| 270 | + if (!actor) | ||
| 271 | + return PyErr_Format(PyExc_Exception, "cannot retrieve Actor from uobject"); | ||
| 272 | + | ||
| 273 | + PyObject *py_bool = nullptr; | ||
| 274 | + if (!PyArg_ParseTuple(args, "O:set_actor_hidden_in_game", &py_bool)) | ||
| 275 | + { | ||
| 276 | + return nullptr; | ||
| 277 | + } | ||
| 278 | + | ||
| 279 | + if (PyObject_IsTrue(py_bool)) | ||
| 280 | + { | ||
| 281 | + actor->SetActorHiddenInGame(true); | ||
| 282 | + } | ||
| 283 | + else | ||
| 284 | + { | ||
| 285 | + actor->SetActorHiddenInGame(false); | ||
| 286 | + } | ||
| 287 | + | ||
| 288 | + | ||
| 289 | + | ||
| 290 | + Py_RETURN_NONE; | ||
| 291 | + } | ||
| 292 | + | ||
| 264 | 293 | PyObject *py_ue_find_actor_by_label(ue_PyUObject * self, PyObject * args) | |
| 265 | 294 | { | |
| 266 | 295 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -27,6 +27,7 @@ PyObject *py_ue_actor_set_level_sequence(ue_PyUObject *, PyObject *); | |||
| 27 | 27 | #if WITH_EDITOR | |
| 28 | 28 | PyObject *py_ue_get_actor_label(ue_PyUObject *, PyObject *); | |
| 29 | 29 | PyObject *py_ue_set_actor_label(ue_PyUObject *, PyObject *); | |
| 30 | + PyObject *py_ue_set_actor_hidden_in_game(ue_PyUObject *, PyObject *); | ||
| 30 | 31 | PyObject *py_ue_find_actor_by_label(ue_PyUObject *, PyObject *); | |
| 31 | 32 | PyObject *py_ue_get_editor_world_counterpart_actor(ue_PyUObject *, PyObject *); | |
| 32 | 33 | PyObject *py_ue_component_type_registry_invalidate_class(ue_PyUObject *, PyObject *); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments