From deb3af46b5d0c8442a7261345defeebefa2fe0f2 Mon Sep 17 00:00:00 2001 From: "gong@UbuntuWSLProArt" Date: Fri, 24 Jan 2025 11:55:42 +0200 Subject: [PATCH] fix typos --- documentation/docs/api/take-screenshot.md | 4 ++-- documentation/docs/api/webgl-rendering-context.md | 2 +- .../version-8.x.x/api/webgl-rendering-context.md | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/documentation/docs/api/take-screenshot.md b/documentation/docs/api/take-screenshot.md index f0c92873..5ad02192 100644 --- a/documentation/docs/api/take-screenshot.md +++ b/documentation/docs/api/take-screenshot.md @@ -22,7 +22,7 @@ In order to take screenshot of the Unity WebGL canvas, you'll need to enable pre ```jsx showLineNumbers title="Example: Preserving the Drawing Buffer" const unityContext = useUnityContext({ - webGLContextAttributes: { + webglContextAttributes: { preserveDrawingBuffer: true, }, }); @@ -60,7 +60,7 @@ function App() { dataUrl: "build/myunityapp.data", frameworkUrl: "build/myunityapp.framework.js", codeUrl: "build/myunityapp.wasm", - webGLContextAttributes: { + webglContextAttributes: { preserveDrawingBuffer: true, }, }); diff --git a/documentation/docs/api/webgl-rendering-context.md b/documentation/docs/api/webgl-rendering-context.md index 4ea4c918..d4af2cf7 100644 --- a/documentation/docs/api/webgl-rendering-context.md +++ b/documentation/docs/api/webgl-rendering-context.md @@ -85,7 +85,7 @@ function App() { dataUrl: "build/myunityapp.data", frameworkUrl: "build/myunityapp.framework.js", codeUrl: "build/myunityapp.wasm", - webGLContextAttributes: { + webglContextAttributes: { alpha: true, antialias: true, depth: true, diff --git a/documentation/versioned_docs/version-8.x.x/api/webgl-rendering-context.md b/documentation/versioned_docs/version-8.x.x/api/webgl-rendering-context.md index 8766762b..3dab9348 100644 --- a/documentation/versioned_docs/version-8.x.x/api/webgl-rendering-context.md +++ b/documentation/versioned_docs/version-8.x.x/api/webgl-rendering-context.md @@ -32,7 +32,7 @@ const unityContext = new UnityContext({ dataUrl: "build/myunityapp.data", frameworkUrl: "build/myunityapp.framework.js", codeUrl: "build/myunityapp.wasm", - webGLContextAttributes: { + webglContextAttributes: { alpha: true, antialias: true, depth: true,