void DisplayBoundary(Boundary boundary, string name = "boundary ") { EditorGUIUtility.labelWidth = 115f; GUILayout.BeginHorizontal(); boundary.quadMaterial = (Material)EditorGUILayout.ObjectField(name + " | Material", boundary.quadMaterial, typeof(Material), false); EditorGUIUtility.labelWidth = 80f; boundary.heightBuffer = EditorGUILayout.FloatField("Height Buffer", boundary.heightBuffer); GUILayout.EndHorizontal(); GUILayout.BeginHorizontal(); EditorGUIUtility.labelWidth = 100f; boundary.height = EditorGUILayout.FloatField("Transform | Y:", boundary.height, GUILayout.ExpandWidth(false)); EditorGUIUtility.labelWidth = 25f; boundary.z1 = EditorGUILayout.FloatField("Z1:", boundary.z1, GUILayout.ExpandWidth(false)); boundary.z2 = EditorGUILayout.FloatField("Z2:", boundary.z2, GUILayout.ExpandWidth(false)); GUILayout.EndHorizontal(); GUILayout.Space(5); boundary.EnableQuad(quadsEnabled); }