Esempio n. 1
0
        void OnGUI()
        {
            if (_wrapper != null)
            {
                if (_wrapper.didDisplayMetricsChanged(width: _currentWidth, height: _currentHeight,
                                                      dpr: _currentDevicePixelRatio))
                {
                    _wrapper.OnDisplayMetricsChanged(width: _currentWidth, height: _currentHeight,
                                                     dpr: _currentDevicePixelRatio);
                }

                GUI.DrawTexture(new Rect(0.0f, 0.0f, width: position.width, height: position.height),
                                image: _wrapper.renderTexture);
                Input_OnGUIEvent(evt: Event.current);
            }
        }