-
-
Notifications
You must be signed in to change notification settings - Fork 162
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
Setting WebGLContextAttributes doesn't seem to have any effect #514
Comments
I also have the same issue, did you find anything on this matter? @Kottakji |
No unfortunately not. |
Ok, I will investigate as well and let you know! Thanks |
@Kottakji @jeffreylanters Unity in the documentation says that by passing the The property displayed in the documentation above, So, maybe, if this isn't intended behaviour from Unity's part, it is a bug need fixing. So we will report this to Unity and wait for their response. In any case, I will inform you on how things work out. |
So, after a lot of checks, it turns out the config object for Specifically, it accepts the following enum:
So, finally, after passing
|
@forforfos Nice find <3 Are you making a PR for this? Or should I? |
@Kottakji There is no need for a PR actually, just pass the Or do you think we could add a reverse transformation before passing it to window.createUnityInstance? Like, if the user passes
transform it to |
The docs are in this repo as well. I've made PR with the docs changes: #543 |
@Kottakji Ohh, I missed my chance for my first contribution ever! :P Nice though! Good that we have an outcome |
Good find @Kottakji and @forforfos, thanks for your research and contribution! The documentation changes look good, but before I merge these - I have some good news for you, @forforfos; you can still make this your first pull request haha! The types are not updated in the PR, which can be found in the link below. Once those changes are published in a release, I'll merge the documentation changes right away. |
Also I'll be adding some additional types for a future release where an enum can be used to set the powerPreference setting making it a bit easier to find the correct value. |
Yayyyyyy!! 👯 |
Please avoid duplicates
Language and Compiler
Babel and WebPack JavaScript
What environment are you using?
Static File Serving
When does your problem occur?
When the Unity App is running
What does your problem relate to?
The problem seems related to my project
React-Unity-WebGL Version
9.4.2
React Version
18.2.0
Unity Version
2021.1.25f1
What happened?
I'm creating my unity context as follows:
But when reading the WebGLContextAttributes from the browser (Chrome / Firefox) it doesn't appear to have changed.
Am I doing something wrong? Or is this an issue?
Reproducible test case
No response
Would you be interested in contributing a fix?
The text was updated successfully, but these errors were encountered: