diff --git a/Source/Engine/UI/GUI/CanvasScaler.cs b/Source/Engine/UI/GUI/CanvasScaler.cs index 8dc1fcd4d..8084786d3 100644 --- a/Source/Engine/UI/GUI/CanvasScaler.cs +++ b/Source/Engine/UI/GUI/CanvasScaler.cs @@ -460,15 +460,17 @@ namespace FlaxEngine.GUI { var result = base.PointToParent(ref location); result *= _scale; + result += Location * (1 - _scale); // Cancel-out scaling of the location in parent space return result; } /// public override Float2 PointFromParent(ref Float2 location) { - var result = base.PointFromParent(ref location); + // Reverse PointToParent + var result = location - Location * (1 - _scale); result /= _scale; - return result; + return base.PointFromParent(ref result); } #endregion