Merge branch 'ColliderPropertiesCleanup' of https://github.com/xxSeys1/FlaxEngine into xxSeys1-ColliderPropertiesCleanup
This commit is contained in:
@@ -26,11 +26,13 @@ namespace FlaxEditor.SceneGraph.Actors
|
|||||||
{
|
{
|
||||||
base.Initialize(layout);
|
base.Initialize(layout);
|
||||||
|
|
||||||
layout.Space(20f);
|
var group = layout.Group("Utility");
|
||||||
var checkbox = layout.Checkbox("Keep Local Orientation", "Keeps the local orientation when resizing.").CheckBox;
|
var checkbox = group.Checkbox("Keep Local Orientation", "Keeps the local orientation when resizing.").CheckBox;
|
||||||
checkbox.Checked = _keepLocalOrientation;
|
checkbox.Checked = _keepLocalOrientation;
|
||||||
checkbox.StateChanged += box => _keepLocalOrientation = box.Checked;
|
checkbox.StateChanged += box => _keepLocalOrientation = box.Checked;
|
||||||
layout.Button("Resize to Fit", Editor.Instance.CodeDocs.GetTooltip(new ScriptMemberInfo(typeof(BoxCollider).GetMethod("AutoResize")))).Button.Clicked += OnResizeClicked;
|
group.Button("Resize to Fit", Editor.Instance.CodeDocs.GetTooltip(new ScriptMemberInfo(typeof(BoxCollider).GetMethod("AutoResize")))).Button.Clicked += OnResizeClicked;
|
||||||
|
// This adds a bit of space between the button and the bottom of the group - even with a height of 0
|
||||||
|
group.Space(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnResizeClicked()
|
private void OnResizeClicked()
|
||||||
|
|||||||
Reference in New Issue
Block a user