Version: Unity 6.2 Alpha (6000.2)
Language : English
Optimize Web platform for mobile
Using Web templates

Web templates

Use Web templates to control the appearance of the HTML page that hosts your Web Player.

Important: To use the templates feature in the Web platform, you need prior knowledge of JavaScript concepts and terminology.

For Facebook Instant Games builds, refer to Facebook Instant Games templates.

Topic Description
Using Web templates Find and use built-in and custom Web templates.
Add a custom Web template Add a custom Web template to the Web Player settings.
Web template structure and instantiation Structure a template’s index.html file and create a new instance of your content with createUnityInstance().
Web template variables Configure internal preprocessor variables, JavaScript macros, conditional directives, and custom user variables.
Web template build configuration and interaction Learn how to configure and interact with Web templates.

Additional resources

Optimize Web platform for mobile
Using Web templates
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961