12 [CustomPropertyDrawer(typeof(Int3))]
15 public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
17 label = EditorGUI.BeginProperty(position, label, property);
18 var contentPosition = EditorGUI.PrefixLabel(position, label);
20 var subLabels =
new GUIContent[3];
21 subLabels[0] =
new GUIContent(
"x");
22 subLabels[1] =
new GUIContent(
"y");
23 subLabels[2] =
new GUIContent(
"z");
25 EditorGUI.MultiPropertyField(contentPosition, subLabels, property.FindPropertyRelative(
"x"));
27 EditorGUI.EndProperty();