Fix UICanvas high DPI issues

This commit is contained in:
stefnotch
2021-03-15 17:30:35 +01:00
parent 85ab871d48
commit b151ab497f

View File

@@ -218,7 +218,7 @@ namespace FlaxEngine
var camera = Camera.MainCamera; var camera = Camera.MainCamera;
if (camera) if (camera)
{ {
ray = camera.ConvertMouseToRay(location); ray = camera.ConvertMouseToRay(location * Platform.DpiScale);
} }
else else
{ {