浏览代码

Merge pull request #208 from Unity-Technologies/zgh/fix_renderMode

fix: renderMode error
/main
GitHub 3 年前
当前提交
48f47f37
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      com.unity.uiwidgets/Runtime/engine/UIWidgetsPanel.cs

2
com.unity.uiwidgets/Runtime/engine/UIWidgetsPanel.cs


}
Vector2? _getPointerPosition(Vector2 position) {
var worldCamera = canvas.worldCamera;
var worldCamera = canvas.renderMode == RenderMode.ScreenSpaceOverlay ? null : canvas.worldCamera;
if (RectTransformUtility.ScreenPointToLocalPointInRectangle(
rect: rectTransform, screenPoint: position, cam: worldCamera, out var localPoint)) {
var scaleFactor = canvas.scaleFactor;

正在加载...
取消
保存