This commit is contained in:
Yuncong Zhang 2019-04-18 14:04:12 +08:00
Родитель 73d2c1f4f7
Коммит 433cd76e9c
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -187,7 +187,7 @@ UIWidgets也支持Gif
#### 八、WebGL Canvas分辨率调整插件
因为浏览器中Canvas的宽高和其在显示器上的像素数可能不一致所以构建出的WebGL程序中画面可能会模糊。
插件`Plugins/platform/webgl/UIWidgetsCanvasDevicePixelRatio.jslib`解决了这个问题。
如果您因为任何原因需要禁止此插件请在Project面板中选中该插件在Inspector面板中的Define Constraints参数中输入`ENABLE_CANVAS_DEVICE_PIXEL_RATIO_PLUGIN`。
如果您因为任何原因需要禁止此插件请在Project面板中选中该插件在Inspector面板中的Define Constraints参数中输入`ENABLE_CANVAS_DEVICE_PIXEL_RATIO_PLUGIN`(该宏默认没有被定义,从而使得此插件被禁用)
此插件覆盖了Unity WebGL构建模块中的如下参数
```

Просмотреть файл

@ -220,7 +220,7 @@ If you would like to modify the behavior of speeding up or cooling down the fram
The width and height of the Canvas in browser may differ from the number of pixels the Canvas occupies on the screen.
Therefore, the image may blur in the builded WebGL program.
The Plugin `Plugins/platform/webgl/UIWidgetsCanvasDevicePixelRatio.jslib` solves this issue.
If you need to disable this plugin for any reason, please select this plugin in the **Project** panel, and put `ENABLE_CANVAS_DEVICE_PIXEL_RATIO_PLUGIN` in the **Define Constraints** field in the **Inspector** panel.
If you need to disable this plugin for any reason, please select this plugin in the **Project** panel, and put `ENABLE_CANVAS_DEVICE_PIXEL_RATIO_PLUGIN` (this is not defined by default, which renders this plugin disabled) in the **Define Constraints** field in the **Inspector** panel.
This plugin overrides the following parameters in the Unity WebGL building module:
```