Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Web templates

Access and create custom Web templates.
Read time 1 minuteLast updated 20 days ago

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.

Topic

Description

Using Web templatesFind and use built-in and custom Web templates.
Add a custom Web templateAdd a custom Web template to the Web Player settings.
Web template structure and instantiationStructure a template's
index.html
file and create a new instance of your content with
createUnityInstance()
.
Web template variablesConfigure internal preprocessor variables, JavaScript macros, conditional directives, and custom user variables.
Web template build configuration and interactionLearn how to configure and interact with Web templates.

Additional resources