浏览代码

remove unnecessary this.

/main
Xingwei Zhu 3 年前
当前提交
48e004fb
共有 1 个文件被更改,包括 11 次插入11 次删除
  1. 22
      com.unity.uiwidgets/Runtime/engine/raycastable/UIWidgetsRaycastablePanel.cs

22
com.unity.uiwidgets/Runtime/engine/raycastable/UIWidgetsRaycastablePanel.cs


public override void mainEntry() {
base.mainEntry();
this.windowHashCode = wrapper.isolate.GetHashCode();
RaycastManager.NewWindow(this.windowHashCode);
windowHashCode = wrapper.isolate.GetHashCode();
RaycastManager.NewWindow(windowHashCode);
RaycastManager.DisposeWindow(this.windowHashCode);
RaycastManager.DisposeWindow(windowHashCode);
if (!this.enabled) {
if (!enabled) {
RectTransformUtility.ScreenPointToLocalPointInRectangle(this.rectTransform, screenPoint, eventCamera,
RectTransformUtility.ScreenPointToLocalPointInRectangle(rectTransform, screenPoint, eventCamera,
Rect rect = this.rectTransform.rect;
Rect rect = rectTransform.rect;
local.x += this.rectTransform.pivot.x * rect.width;
local.y -= this.rectTransform.pivot.y * rect.height;
local.x = local.x / this._currentDevicePixelRatio;
local.y = -local.y / this._currentDevicePixelRatio;
local.x += rectTransform.pivot.x * rect.width;
local.y -= rectTransform.pivot.y * rect.height;
local.x = local.x / _currentDevicePixelRatio;
local.y = -local.y / _currentDevicePixelRatio;
return !RaycastManager.CheckCastThrough(this.windowHashCode, local);
return !RaycastManager.CheckCastThrough(windowHashCode, local);
}
}
}
正在加载...
取消
保存