浏览代码

fix bug

/siyaoH-1.17-PlatformMessage
xingweizhu 4 年前
当前提交
c1c93c6e
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 6
      com.unity.uiwidgets/Runtime/engine2/UIWidgetsPanelWrapper.cs

6
com.unity.uiwidgets/Runtime/engine2/UIWidgetsPanelWrapper.cs


_width = width;
_height = height;
_devicePixelRatio = devicePixelRatio;
devicePixelRatio = devicePixelRatio;
}
void _destroyRenderTexture() {

void _enableUIWidgetsPanel(string font_settings) {
D.assert(_renderTexture == null);
IntPtr native_tex_ptr = UIWidgetsPanel_onEnable(_ptr, _width, _height, _devicePixelRatio,
IntPtr native_tex_ptr = UIWidgetsPanel_onEnable(_ptr, _width, _height, devicePixelRatio,
Application.streamingAssetsPath, font_settings);
D.assert(native_tex_ptr != IntPtr.Zero);

void _resizeUIWidgetsPanel() {
D.assert(_renderTexture == null);
IntPtr native_tex_ptr = UIWidgetsPanel_onRenderTexture(_ptr, _width, _height, _devicePixelRatio);
IntPtr native_tex_ptr = UIWidgetsPanel_onRenderTexture(_ptr, _width, _height, devicePixelRatio);
D.assert(native_tex_ptr != IntPtr.Zero);
_renderTexture =

正在加载...
取消
保存