Add a custom Web template
Add a custom Web template to the Web Player settings.
읽는 시간 1분최근 업데이트: 23일 전
Create a custom Web template to control the appearance of the HTML page that displays your content.
Custom templates appear in Web Player settings under Web Template with the folder name and thumbnail image you provide.
Create a custom template
The easiest way to create a custom Web template is to copy a built-in template folder then modify it to meet your needs. Each template folder contains an file along with any other resources the page needs, such as images or stylesheets.
index.htmlTo create a custom template:
-
Copy the built-inor
Defaulttemplate folder fromMinimal.<Unity Installation>/PlaybackEngines/WebGLSupport/BuildTools/WebGLTemplates/BaseNote: On macOS, you can find the Unity installation folder in thefolder.Applications -
In your project'sfolder, create a subfolder called
Assets.WebGLTemplates -
Place the copied template folder in thefolder.
Assets/WebGLTemplates -
Rename the copied template folder so you can identify it later.
Add a thumbnail image
To give the template a thumbnail image for reference:
- Add a image to the template folder.
128x128-pixel - Name the image .
thumbnail.png