浏览代码

Merge branch 'master' into yczhang

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

10
Runtime/engine/UIWidgetsPanel.cs


public const int defaultMaxTargetFrameRate = 60;
public const int defaultMinTargetFrameRate = 15;
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 {

正在加载...
取消
保存