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

Commit 80afbb4

Browse files
authored
Merge pull request #131 from UnityTech/yczhang
Update README.
2 parents e0f2dcc + 6a38cb1 commit 80afbb4

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参数中,输入任意(没有被Unity定义为宏)的字符串(例如`ENABLE_CANVAS_DEVICE_PIXEL_RATIO_PLUGIN`),使得只有在Player Settings中定义了这个宏,此插件才会启用
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` (this is not defined by default, which renders this plugin disabled) 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 an arbitrary string (that is not defined as a macro by Unity) in the **Define Constraints** field in the **Inspector** panel (for example, `ENABLE_CANVAS_DEVICE_PIXEL_RATIO_PLUGIN`), so that the plugin is enabled only if this macro is defined in **Player Settings**, which effectively disables the plugin.
224224

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

0 commit comments

Comments
 (0)