We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d3412d commit 72c2be0Copy full SHA for 72c2be0
README.md
@@ -67,6 +67,7 @@ const config: UnityLoaderConfig = {
67
};
68
69
export const UnityGameComponent: VFC = (): JSX.Element => {
70
+ // your need to construct a config or pass it from the props
71
const [ctx] = useState<UnityContext>(new UnityContext(config));
72
73
// You can keep track of the game progress and ready state like this.
@@ -177,3 +178,5 @@ export async function fetchLoaderConfig(
177
178
179
}
180
```
181
+
182
+You can then use it to construct a `UnityContext` and pass this context to your `UnityRenderer` via the `context` prop.
0 commit comments