Unity Edior Drawer Property Align

282 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 best solutions below

0
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.