private void Draw(string label, ref Vector2 value) { UnityGUI.BeginChangeCheck(); value = UnityGUI.Vector2(label, value); var changed = UnityGUI.EndChangeCheck(); if (changed) { UpdateValues(label); } }