Change blur panel to draw self. Fix issue with blur strength slider.

This commit is contained in:
Chandler Cox
2023-09-30 17:44:42 -05:00
parent fd3f10864b
commit 260c48e41d

View File

@@ -11,7 +11,7 @@ namespace FlaxEngine.GUI
/// <summary>
/// Gets or sets the blur strength. Defines how blurry the background is. Larger numbers increase blur, resulting in a larger runtime cost on the GPU.
/// </summary>
[EditorOrder(0), Limit(0, 100, 0.0f)]
[EditorOrder(0), Limit(0, 100, 0.1f)]
public float BlurStrength { get; set; }
/// <summary>
@@ -29,10 +29,9 @@ namespace FlaxEngine.GUI
}
/// <inheritdoc />
public override void Draw()
public override void DrawSelf()
{
base.Draw();
base.DrawSelf();
var size = Size;
var strength = BlurStrength;
if (BlurScaleWithSize)