Skip to content
This repository was archived by the owner on Apr 29, 2021. It is now read-only.

Commit 433cd76

Browse files
author
Yuncong Zhang
committed
Update README.
1 parent 73d2c1f commit 433cd76

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README-ZH.md

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

192192
此插件覆盖了Unity WebGL构建模块中的如下参数:
193193
```

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ If you would like to modify the behavior of speeding up or cooling down the fram
220220
The width and height of the Canvas in browser may differ from the number of pixels the Canvas occupies on the screen.
221221
Therefore, the image may blur in the builded WebGL program.
222222
The Plugin `Plugins/platform/webgl/UIWidgetsCanvasDevicePixelRatio.jslib` solves this issue.
223-
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.
223+
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.
224224

225225
This plugin overrides the following parameters in the Unity WebGL building module:
226226
```

0 commit comments

Comments
 (0)