|
|
|
|
|
|
#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; } |
|
|
|