Skip to content

Use the UnityInstance after createUnityInstance #435

Discussion options

You must be logged in to vote

Thanks for the details and thinking with me @rubenlangeweg. I've looked into the code of several third party plugins including Agora, and came to the conclusion that exposing the Unity Instance within React via the Unity Context hook seems to be the most reliable and scalable way to go. Especially when looking into the future where more third party implementations might required its access.

In the latest release version 9.2.0, I've implemented this API (with a caution) where the Unity Instance is being exposed to do with it as you like. You can visit the docs to read more about it:
https://react-unity-webgl.dev/docs/api/unsafe-unity-instance

In the following example we'll bind the Unity I…

Replies: 2 comments 17 replies

Comment options

You must be logged in to vote
7 replies
@rubenlangeweg
Comment options

@rubenlangeweg
Comment options

@rubenlangeweg
Comment options

@uncle-mo
Comment options

@rubenlangeweg
Comment options

Comment options

You must be logged in to vote
10 replies
@learning-github-zgy
Comment options

@jeffreylanters
Comment options

@learning-github-zgy
Comment options

@jeffreylanters
Comment options

@learning-github-zgy
Comment options

Answer selected by jeffreylanters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants