浏览代码

fix mac issue

/siyaoH-1.17-PlatformMessage
xingwei.zhu 4 年前
当前提交
4babc724
共有 1 个文件被更改,包括 10 次插入5 次删除
  1. 15
      com.unity.uiwidgets/Runtime/engine2/UIWidgetsPanelWrapper.cs

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


#if UNITY_EDITOR_WIN || UNITY_STANDALONE_WIN
public partial class UIWidgetsPanelWrapper {
RenderTexture _renderTexture;
public RenderTexture renderTexture {
get { return _renderTexture; }
}
void _createRenderTexture(int width, int height, float devicePixelRatio) {
D.assert(_renderTexture == null);

[DllImport(NativeBindings.dllName)]
static extern void UIWidgetsPanel_onRenderTexture(
IntPtr ptr, IntPtr nativeTexturePtr, int width, int height, float dpi);
}
}
#endregion

public partial class UIWidgetsPanelWrapper {
Texture _renderTexture;
public Texture renderTexture {
get { return _renderTexture; }
}
void _createRenderTexture(int width, int height, float devicePixelRatio) {
D.assert(_renderTexture == null);

}
public Isolate isolate { get; private set; }
public RenderTexture renderTexture {
get { return _renderTexture; }
}
public float devicePixelRatio {
get { return _devicePixelRatio; }

正在加载...
取消
保存