Skip to content
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

Limitations of running webgl on ios devices #74

Open
zhaorui-creator opened this issue Jun 19, 2023 · 2 comments
Open

Limitations of running webgl on ios devices #74

zhaorui-creator opened this issue Jun 19, 2023 · 2 comments

Comments

@zhaorui-creator
Copy link

However, running the webgl exported from my own actual project on ios is still obviously hot. Does Unity currently support webgl running on ios devices?

@JohannesDeml
Copy link
Owner

Does Unity currently support webgl running on ios devices?

From the docs: https://docs.unity3d.com/2023.1/Documentation/Manual/webgl-browsercompatibility.html

Unity WebGL doesn’t support mobile devices. It might work on high-end devices, but current devices are often not powerful and don’t have enough memory to support Unity WebGL content.

From the Unite 2022: https://youtu.be/a4spnCpE0RE?t=2700

We have now removed the warning label on Unity WebGL content that used to appear when it ran on mobile devices.

So, as of now Unity does not officially support WebGL on mobile devices, but are adding new features specific for mobile WebGL and do want to push further in that direction. So I would say they now unofficially support it.

WebGL on mobile is a lot more restrictive and challenging to get good performance compared to building directly for Android or iOS, so you will need to think a lot more about memory consumption and general performance improvements. My take would be, if your device gets hot, you probably have some expensive rendering or script logic, that you need to optimize. Also be sure to use ASTC texture compression if you mainly target mobile devices.

@JohannesDeml
Copy link
Owner

From Unite 2023: https://youtu.be/IbLiD5NFRA4?si=7rQRRm2E6pskzuOM&t=1428

Unity now supports mobile browsers starting from Unity 6

I guess this will mark the official support for WebGL export for mobile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants