目录
1.1 Get Mouse Position on Platform
1.2 Get Mouse Position on Viewport(使用较多)
1.3 Get Player Controller —— Get Mouse Position
1.4 Get Player Controller —— Get Mouse Position Scaled by DPI
一、获取鼠标位置
本人电脑的屏幕分辨率为(2560,1600),下面介绍四种方法:
1.1 Get Mouse Position on Platform
返回整个屏幕的鼠标坐标,单位为屏幕像素。
屏幕左上角为(0,0),屏幕右下角为(2560,1600)。
1.2 Get Mouse Position on Viewport(使用较多)
返回整个屏幕的鼠标坐标,单位为屏幕像素 / DPI Scale。
游戏窗口左上角为(0,0)。

最低0.47元/天 解锁文章
8344

被折叠的 条评论
为什么被折叠?



