protected override void OnControlGUI(Rect position) { EditorGUI.BeginChangeCheck(); Vector3Int newValue; if (adaptiveWidth) { newValue = LudiqGUI.AdaptiveVector3IntField(position, GUIContent.none, (Vector3Int)accessor.value); } else if (position.width <= Styles.compactThreshold) { newValue = LudiqGUI.CompactVector3IntField(position, GUIContent.none, (Vector3Int)accessor.value); } else { newValue = EditorGUI.Vector3IntField(position, GUIContent.none, (Vector3Int)accessor.value); } if (EditorGUI.EndChangeCheck()) { accessor.RecordUndo(); accessor.value = newValue; } }