UGUI左边按钮部分区域无法点击的bug

文章描述了一个Unity3D构建在窗口模式下运行时,关于UGUI包中的MousePointer输入坐标在某些窗口尺寸下出错的问题。已知解决方案是将UGUI包从PackageCache移动到项目Packages文件夹,并替换MultipleDisplayUtilities.cs文件。提供了一个修复后的MultipleDisplayUtilities.cs源代码。

https://issuetracker.unity3d.com/issues/broken-mouse-pointer-input-coordinates-in-graphicraycaster-for-certain-window-sizes-in-build-when-run-in-windowed-mode

A fix is on the way. You can work around the issue now by moving the UGUI package from the PackageCache folder into the projects Packages folder. Then replace the file MyProject\Packages\com.unity.ugui\Runtime\UI\Core\MultipleDisplayUtilities.cs with this one https://gist.github.com/karljj1/e333a7a3f192a5d264d95bfbaff0fde8

解决步骤:

  1. 把UGUI文件夹 从PackageCache 复制到 工程 Packages文件夹

  1. 下载 MultipleDisplayUtilities.cs 并替换。

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值