File tree Expand file tree Collapse file tree 4 files changed +14
-10
lines changed Expand file tree Collapse file tree 4 files changed +14
-10
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,8 @@ npm install unity-webgl
43
43
- [ Live Demo] ( https://stackblitz.com/edit/unity-webgl-v4-demo )
44
44
- [ vue3 Demo] ( https://stackblitz.com/edit/unity-webgl-v4-vue3-demo )
45
45
46
- > 🚨 ** Important:**
46
+ > [ !IMPORTANT]
47
+ >
47
48
> Communication and interaction with the web application are only possible after the Unity instance is successfully rendered (when the ` mounted ` event is triggered).
48
49
> Recommended to include a loading progress bar when opening the page.
49
50
@@ -134,9 +135,9 @@ Initializes the Unity application's configuration items.
134
135
| ` webglContextAttributes ` | object | WebGL rendering context options. @see [ WebGLRenderingContext] [ webglContextAttributes-url ] | Optional |
135
136
| ` devicePixelRatio ` | number | Canvas device pixel ratio. @see [ devicePixelRatio] [ devicePixelRatio-url ] | Optional |
136
137
| ` matchWebGLToCanvasSize ` | boolean | Disable automatic WebGL canvas size sync. @see [ matchWebGLToCanvasSize] [ matchWebGLToCanvasSize-url ] | Optional |
137
- | ` autoSyncPersistentDataPath ` | boolean | Enables or disables auto synchronization of the persistent data path. | 可选 |
138
- | ` disabledCanvasEvents ` | string[ ] | Overwrites the default disabled canvas events. | 可选 |
139
- | ` cacheControl ` | ` (url) => string ` | The Cache Control API | 可选 |
138
+ | ` autoSyncPersistentDataPath ` | boolean | Enables or disables auto synchronization of the persistent data path. | Optional |
139
+ | ` disabledCanvasEvents ` | string[ ] | Overwrites the default disabled canvas events. | Optional |
140
+ | ` cacheControl ` | ` (url) => string ` | The Cache Control API | Optional |
140
141
141
142
[ devicePixelRatio-url ] : https://developer.mozilla.org/en-US/docs/Web/API/Window/devicePixelRatio
142
143
[ matchWebGLToCanvasSize-url ] : https://issuetracker.unity3d.com/issues/webgl-builds-dont-allow-separate-control-on-canvas-render-buffer-size
Original file line number Diff line number Diff line change @@ -43,7 +43,8 @@ https://cdn.jsdelivr.net/npm/unity-webgl/dist/index.min.js
43
43
- [ Live Demo] ( https://stackblitz.com/edit/unity-webgl-v4-demo )
44
44
- [ vue3 Demo] ( https://stackblitz.com/edit/unity-webgl-v4-vue3-demo )
45
45
46
- > 🚨 提醒:
46
+ > [ !IMPORTANT]
47
+ >
47
48
> 仅在 ` UnityInstance ` 渲染完成后(触发 ` mounted ` 事件时)才能进行 Web 应用程序的通信和交互。
48
49
> 建议在页面打开时添加加载进度条。
49
50
Original file line number Diff line number Diff line change @@ -43,7 +43,8 @@ npm install unity-webgl
43
43
- [ Live Demo] ( https://stackblitz.com/edit/unity-webgl-v4-demo )
44
44
- [ vue3 Demo] ( https://stackblitz.com/edit/unity-webgl-v4-vue3-demo )
45
45
46
- > 🚨 ** Important:**
46
+ > [ !IMPORTANT]
47
+ >
47
48
> Communication and interaction with the web application are only possible after the Unity instance is successfully rendered (when the ` mounted ` event is triggered).
48
49
> Recommended to include a loading progress bar when opening the page.
49
50
@@ -134,9 +135,9 @@ Initializes the Unity application's configuration items.
134
135
| ` webglContextAttributes ` | object | WebGL rendering context options. @see [ WebGLRenderingContext] [ webglContextAttributes-url ] | Optional |
135
136
| ` devicePixelRatio ` | number | Canvas device pixel ratio. @see [ devicePixelRatio] [ devicePixelRatio-url ] | Optional |
136
137
| ` matchWebGLToCanvasSize ` | boolean | Disable automatic WebGL canvas size sync. @see [ matchWebGLToCanvasSize] [ matchWebGLToCanvasSize-url ] | Optional |
137
- | ` autoSyncPersistentDataPath ` | boolean | Enables or disables auto synchronization of the persistent data path. | 可选 |
138
- | ` disabledCanvasEvents ` | string[ ] | Overwrites the default disabled canvas events. | 可选 |
139
- | ` cacheControl ` | ` (url) => string ` | The Cache Control API | 可选 |
138
+ | ` autoSyncPersistentDataPath ` | boolean | Enables or disables auto synchronization of the persistent data path. | Optional |
139
+ | ` disabledCanvasEvents ` | string[ ] | Overwrites the default disabled canvas events. | Optional |
140
+ | ` cacheControl ` | ` (url) => string ` | The Cache Control API | Optional |
140
141
141
142
[ devicePixelRatio-url ] : https://developer.mozilla.org/en-US/docs/Web/API/Window/devicePixelRatio
142
143
[ matchWebGLToCanvasSize-url ] : https://issuetracker.unity3d.com/issues/webgl-builds-dont-allow-separate-control-on-canvas-render-buffer-size
Original file line number Diff line number Diff line change @@ -43,7 +43,8 @@ https://cdn.jsdelivr.net/npm/unity-webgl/dist/index.min.js
43
43
- [ Live Demo] ( https://stackblitz.com/edit/unity-webgl-v4-demo )
44
44
- [ vue3 Demo] ( https://stackblitz.com/edit/unity-webgl-v4-vue3-demo )
45
45
46
- > 🚨 提醒:
46
+ > [ !IMPORTANT]
47
+ >
47
48
> 仅在 ` UnityInstance ` 渲染完成后(触发 ` mounted ` 事件时)才能进行 Web 应用程序的通信和交互。
48
49
> 建议在页面打开时添加加载进度条。
49
50
You can’t perform that action at this time.
0 commit comments