You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| context | The context of the game build, which handles loading and event I/O. |`UnityContext`|`undefined`|
355
+
| onUnityProgressChange | Callback to execute when the loading progress of the game changes. Ranges from `0.0` to `1.0`. |`(progress: number) => void`|`undefined`|
356
+
| onUnityReadyStateChange | Callback to execute when the game build finished loading and begins to render. |`(ready: boolean) => void`|`undefined`|
357
+
| onUnityError | Callback which executes when an error occurs while loading the game. Currently Unity limits what errors can be cought, so some errors still appear via `window.alert()`. |`(error: Error) => void`|`undefined`|
358
+
|`{...HTMLAttributes}`| All default attributes of a `<canvas>` element are supported to allow for an atomic component, supporting custom styling and libraries like `styled-components`. | `Omit<HTMLAttributes<HtmlCanvasElement>, 'ref' | 'id'` ||
0 commit comments