public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) { EditorGUI.BeginChangeCheck(); Vector4Int value = EditorExtensions.Vector4IntField(position, label, property.GetVector4Int()); if (EditorGUI.EndChangeCheck()) { property.SetVector4Int(value); } }
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) { property.vector4Value = EditorExtensions.Vector4Field(position, label, property.vector4Value); }
public override float GetPropertyHeight(SerializedProperty property, GUIContent label) { return EditorExtensions.GetMultiFieldHeight(label); }