Merge branch 'DebugDrawClearInEditor' of https://github.com/xxSeys1/FlaxEngine into xxSeys1-DebugDrawClearInEditor
# Conflicts: # Source/Editor/Windows/GameWindow.cs
This commit is contained in:
@@ -970,6 +970,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");
|
||||
|
||||
@@ -695,6 +695,13 @@ namespace FlaxEditor.Windows
|
||||
slider.ValueChanged += () => AudioVolume = slider.Value;
|
||||
}
|
||||
|
||||
// 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