private static void DoFieldsDraw(Rect position, SerializedProperty property) { using (Disposables.LabelSetWidth(LABEL_WIDTH)) { using (var scope = Disposables.RectHorizontalScope(2, position)) { property.Next(true); EditorGUI.PropertyField(scope.GetNext(RectEdit.AddY(1), RectEdit.SubtractHeight(1), RectEdit.SubtractWidth(2)), property, X_Content); property.Next(true); EditorGUI.PropertyField(scope.GetNext(RectEdit.AddY(1), RectEdit.SubtractHeight(1)), property, Y_Content); } } }
private static void DrawNormal(Rect position, SerializedProperty property) { using (Disposables.SetIndent(0)) { using (Disposables.LabelSetWidth(LABEL_WIDTH)) { using (var scope = Disposables.RectHorizontalScope(4, position)) { property.Next(true); EditorGUI.PropertyField(scope.GetNext(RectEdit.SubtractWidth(2)), property, X_Content); property.Next(true); EditorGUI.PropertyField(scope.GetNext(RectEdit.SubtractWidth(2)), property, Y_Content); property.Next(true); EditorGUI.PropertyField(scope.GetNext(RectEdit.SubtractWidth(2)), property, Z_Content); property.Next(true); EditorGUI.PropertyField(scope.GetNext(RectEdit.SubtractWidth(2)), property, W_Content); } } } }