Unity Edior Drawer Property Align

266 views Asked by At

anyone knows how to deal with this problem? I need to offset that grid without constant values. Can Unity Editor give me the position of the properties?

enter image description here

1

There are 1 answers

0
Santiago Cervera Salazar On

The following line is the offset you need to move your element and mantain align with other properties

float offset = EditorGUIUtility.labelWidth - ((EditorGUI.indentLevel) * 15);

I found the answer here.