Skip to content

There are some typos in the examples in the documents #570

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions documentation/docs/api/take-screenshot.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
});
Expand Down Expand Up @@ -60,7 +60,7 @@ function App() {
dataUrl: "build/myunityapp.data",
frameworkUrl: "build/myunityapp.framework.js",
codeUrl: "build/myunityapp.wasm",
webGLContextAttributes: {
webglContextAttributes: {
preserveDrawingBuffer: true,
},
});
Expand Down
2 changes: 1 addition & 1 deletion documentation/docs/api/webgl-rendering-context.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Loading