void ShapeBuilderOptions(ShapeBuilder builder) { var menu = new GenericMenu(); menu.AddItem(new GUIContent("Reset", "Reset the selected Shape parameters."), false, () => { builder.ResetParameters(); RebuildPreview(); }); menu.ShowAsContext(); }