How to create an application build to run in a browser
Create a WebGL build to run your application in a browser.
Select the Unity WebGL component when installing Unity Editor. To add a module to an already installed Unity Editor, run the installer for your version and select the missing components.
Demo WebGL build
See the demo in a browser.
To create a WebGL build:
- Open your Unity project.
- Go to
File > Build settings . - In the
Platform panel, selectWebGL . - Select build type (optional).
- Click
Build and Run .
Note
Not all Unity features are available in WebGL builds. See the Unity documentation for limitations.
For the payment interface to work correctly, open it in an iframe. To do this, call the Purchase
method of the
Was this article helpful?
Thank you for your feedback!
We’ll review your message and use it to help us improve your experience.Found a typo or other text error? Select the text and press Ctrl+Enter.