From 004e02af73c88dc08306c3211d47decaf36cad68 Mon Sep 17 00:00:00 2001 From: Chandler Cox Date: Mon, 26 Jan 2026 20:46:49 -0600 Subject: [PATCH] Fix double scaling in canvas scalar. --- Source/Engine/UI/GUI/CanvasScaler.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/Engine/UI/GUI/CanvasScaler.cs b/Source/Engine/UI/GUI/CanvasScaler.cs index 6bd18ea51..1e30fd22f 100644 --- a/Source/Engine/UI/GUI/CanvasScaler.cs +++ b/Source/Engine/UI/GUI/CanvasScaler.cs @@ -449,8 +449,7 @@ namespace FlaxEngine.GUI /// public override bool RayCast(ref Float2 location, out Control hit) { - var p = location / _scale; - if (RayCastChildren(ref p, out hit)) + if (RayCastChildren(ref location, out hit)) return true; return base.RayCast(ref location, out hit); }