public static void ForEdit2(string name, Func <xna.Vector2> getter, Action <xna.Vector2> setter, float speed = 1f) { var actualValue = getter(); ImGuiEx.ForEdit2(name, () => new Vector2(actualValue.X, actualValue.Y), x => setter(new xna.Vector2(x.X, x.Y)), speed); }