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

Function py_ue_set_name

Source/UnrealEnginePython/Private/UEPyObject.cpp:277–297  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

275}
276
277PyObject *py_ue_set_name(ue_PyUObject *self, PyObject * args) {
278
279 ue_py_check(self);
280
281 char *name;
282 if (!PyArg_ParseTuple(args, "s:set_name", &name)) {
283 return NULL;
284 }
285
286 if (!self->ue_object->Rename(UTF8_TO_TCHAR(name), self->ue_object->GetOutermost(), REN_Test)) {
287 return PyErr_Format(PyExc_Exception, "cannot set name %s", name);
288 }
289
290 if (self->ue_object->Rename(UTF8_TO_TCHAR(name))) {
291 Py_INCREF(Py_True);
292 return Py_True;
293 }
294
295 Py_INCREF(Py_False);
296 return Py_False;
297}
298
299PyObject *py_ue_get_name(ue_PyUObject *self, PyObject * args) {
300

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected