diff --git a/Plugins/HoudiniEngineUnity/Editor/UI/HEU_ParameterUI.cs b/Plugins/HoudiniEngineUnity/Editor/UI/HEU_ParameterUI.cs index 0e9cdfed..666ae0b7 100644 --- a/Plugins/HoudiniEngineUnity/Editor/UI/HEU_ParameterUI.cs +++ b/Plugins/HoudiniEngineUnity/Editor/UI/HEU_ParameterUI.cs @@ -945,6 +945,10 @@ private void DrawArrayPropertyInt(string labelString, string helpString, ArrayWr GUILayout.BeginHorizontal(); { + var indentLevel = EditorGUI.indentLevel; + EditorGUI.indentLevel = 0; + var labelWidth = EditorGUIUtility.labelWidth; + EditorGUIUtility.labelWidth = 12; for (int i = 0; i < numElements; ++i) { if (i > 0 && i % maxElementsPerRow == 0) @@ -955,6 +959,8 @@ private void DrawArrayPropertyInt(string labelString, string helpString, ArrayWr intsValue[i] = EditorGUILayout.DelayedIntField(intsValue[i]); } + EditorGUI.indentLevel = indentLevel; + EditorGUIUtility.labelWidth = labelWidth; } GUILayout.EndHorizontal(); } @@ -976,6 +982,10 @@ private void DrawArrayPropertyFloat(string labelString, string helpString, Array EditorGUILayout.BeginHorizontal(); { + var indentLevel = EditorGUI.indentLevel; + EditorGUI.indentLevel = 0; + var labelWidth = EditorGUIUtility.labelWidth; + EditorGUIUtility.labelWidth = 12; for (int i = 0; i < numElements; ++i) { if (i > 0 && i % maxElementsPerRow == 0) @@ -986,6 +996,8 @@ private void DrawArrayPropertyFloat(string labelString, string helpString, Array floatsValue[i] = EditorGUILayout.DelayedFloatField(floatsValue[i]); } + EditorGUI.indentLevel = indentLevel; + EditorGUIUtility.labelWidth = labelWidth; } EditorGUILayout.EndHorizontal(); }