protected void ItemDataField(string label, ref Vertex3D field, bool dirtyMesh = true) { EditorGUI.BeginChangeCheck(); Vertex3D val = EditorGUILayout.Vector3Field(label, field.ToUnityVector3()).ToVertex3D(); if (EditorGUI.EndChangeCheck()) { FinishEdit(label, dirtyMesh); field = val; } }