@@ -79,15 +79,27 @@ static PyMethodDef ue_PyEdGraphPin_methods[] = {
7979};
8080
8181static PyObject *py_ue_edgraphpin_get_name (ue_PyEdGraphPin *self, void *closure) {
82+ #if ENGINE_MINOR_VERSION > 18
83+ return PyUnicode_FromString (TCHAR_TO_UTF8 (*(self->pin ->PinName .ToString ())));
84+ #else
8285 return PyUnicode_FromString (TCHAR_TO_UTF8 (*(self->pin ->PinName )));
86+ #endif
8387}
8488
8589static PyObject *py_ue_edgraphpin_get_category (ue_PyEdGraphPin *self, void *closure) {
90+ #if ENGINE_MINOR_VERSION > 18
91+ return PyUnicode_FromString (TCHAR_TO_UTF8 (*(self->pin ->PinType .PinCategory .ToString ())));
92+ #else
8693 return PyUnicode_FromString (TCHAR_TO_UTF8 (*(self->pin ->PinType .PinCategory )));
94+ #endif
8795}
8896
8997static PyObject *py_ue_edgraphpin_get_sub_category (ue_PyEdGraphPin *self, void *closure) {
98+ #if ENGINE_MINOR_VERSION > 18
99+ return PyUnicode_FromString (TCHAR_TO_UTF8 (*(self->pin ->PinType .PinSubCategory .ToString ())));
100+ #else
90101 return PyUnicode_FromString (TCHAR_TO_UTF8 (*(self->pin ->PinType .PinSubCategory )));
102+ #endif
91103}
92104
93105static PyObject *py_ue_edgraphpin_get_default_value (ue_PyEdGraphPin *self, void *closure) {
@@ -139,7 +151,11 @@ static PyGetSetDef ue_PyEdGraphPin_getseters[] = {
139151static PyObject *ue_PyEdGraphPin_str (ue_PyEdGraphPin *self)
140152{
141153 return PyUnicode_FromFormat (" <unreal_engine.EdGraphPin {'name': '%s', 'type': '%s'}>" ,
154+ #if ENGINE_MINOR_VERSION > 18
155+ TCHAR_TO_UTF8 (*self->pin ->PinName .ToString ()), TCHAR_TO_UTF8 (*self->pin ->PinType .PinCategory .ToString ()));
156+ #else
142157 TCHAR_TO_UTF8 (*self->pin ->PinName ), TCHAR_TO_UTF8 (*self->pin ->PinType .PinCategory ));
158+ #endif
143159}
144160
145161static PyTypeObject ue_PyEdGraphPinType = {
0 commit comments