コード例 #1
0
        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);
            }
        }
コード例 #2
0
 public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
 {
     property.vector4Value = EditorExtensions.Vector4Field(position, label, property.vector4Value);
 }
コード例 #3
0
 public override float GetPropertyHeight(SerializedProperty property, GUIContent label)
 {
     return EditorExtensions.GetMultiFieldHeight(label);
 }