浏览代码

enteredPointers bug fix + remove default settings on full-screen mode in UIWidgetPanel, player can set this via their own code or build settings

/main
xingwei.zhu 6 年前
当前提交
012356d5
共有 1 个文件被更改,包括 3 次插入7 次删除
  1. 10
      Runtime/engine/UIWidgetsPanel.cs

10
Runtime/engine/UIWidgetsPanel.cs


Texture _texture;
Vector2 _lastMouseMove;
HashSet<int> _enteredPointers;
readonly HashSet<int> _enteredPointers = new HashSet<int>();
bool _viewMetricsCallbackRegistered;

protected override void OnEnable() {
base.OnEnable();
#if UNITY_ANDROID
Screen.fullScreen = false;
#endif
this._enteredPointers.Clear();
if (_repaintEvent == null) {
_repaintEvent = new Event {type = EventType.Repaint};

this._windowAdapter.attachRootWidget(root);
this._lastMouseMove = Input.mousePosition;
this._enteredPointers = new HashSet<int>();
}
public float devicePixelRatio {

正在加载...
取消
保存