Merge branch 'fix_issue_3083' of https://github.com/amir9480/FlaxEngine into amir9480-fix_issue_3083

This commit is contained in:
Wojtek Figat
2025-01-27 11:58:13 +01:00
2 changed files with 14 additions and 7 deletions

View File

@@ -858,6 +858,14 @@ namespace FlaxEngine.GUI
}
}
/// <inheritdoc />
public override bool ContainsPoint(ref Float2 location, bool precise = false)
{
if (precise && this.GetType() == typeof(ContainerControl) && BackgroundColor.A <= 0.0f) // Go through transparency
return false;
return base.ContainsPoint(ref location, precise);
}
/// <inheritdoc />
public override void PerformLayout(bool force = false)
{