Fix selecting CanvasContainer in UI Editor queries

This commit is contained in:
Wojtek Figat
2024-03-19 20:15:56 +01:00
parent 57568d9cc3
commit 292694d89c

View File

@@ -689,7 +689,7 @@ namespace FlaxEditor
#else
// Find any control under mouse (hierarchical)
hit = GetChildAtRecursive(location);
if (hit is View)
if (hit is View || hit is CanvasContainer)
hit = null;
return hit != null;
#endif