ドキュメント

Unity Engine

Unity Engine

Web templates

Access and create custom Web templates.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Use Web templates to control the appearance of the HTML page that hosts your Web Player.
重要
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