void OnEnable() { D.assert(_wrapper == null); _configurations = new Configurations(); _wrapper = new UIWidgetsPanelWrapper(); onEnable(); _wrapper.Initiate(this, width: _currentWidth, height: _currentHeight, dpr: _currentDevicePixelRatio, _configurations: _configurations); _configurations.Clear(); Input_OnEnable(); }
void OnEnable() { D.assert(_wrapper == null); //enable listener to MouseMoveEvents by default //user can disable it in onEnable() if needed wantsMouseMove = true; _configurations = new Configurations(); _wrapper = new UIWidgetsPanelWrapper(); onEnable(); _wrapper.Initiate(this, width: _currentWidth, height: _currentHeight, dpr: _currentDevicePixelRatio, _configurations: _configurations); _configurations.Clear(); Input_OnEnable(); }