|
|
|
|
|
|
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 { |
|
|
|