add debug draw clear to game and editor panel
This commit is contained in:
@@ -973,6 +973,15 @@ namespace FlaxEditor.Viewport
|
||||
|
||||
ViewWidgetButtonMenu.AddSeparator();
|
||||
|
||||
// Clear Debug Draw
|
||||
{
|
||||
var button = ViewWidgetButtonMenu.AddButton("Clear Debug Draw");
|
||||
button.CloseMenuOnClick = false;
|
||||
button.Clicked += () => DebugDraw.Clear();
|
||||
}
|
||||
|
||||
ViewWidgetButtonMenu.AddSeparator();
|
||||
|
||||
// Brightness
|
||||
{
|
||||
var brightness = ViewWidgetButtonMenu.AddButton("Brightness");
|
||||
|
||||
@@ -596,6 +596,13 @@ namespace FlaxEditor.Windows
|
||||
checkbox.StateChanged += x => ShowDebugDraw = x.Checked;
|
||||
}
|
||||
|
||||
// Debug Draw Clear
|
||||
{
|
||||
var button = menu.AddButton("Clear Debug Draw");
|
||||
button.CloseMenuOnClick = false;
|
||||
button.Clicked += () => DebugDraw.Clear();
|
||||
}
|
||||
|
||||
menu.MinimumWidth = 200;
|
||||
menu.AddSeparator();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user