当前位置:网站首页>Unity custom webgl packaging template
Unity custom webgl packaging template
2022-07-07 02:35:00 【Wu Zimu】
about webgl project , We often need to modify index.html Contents of Li , But every time you pack , Will overwrite the last content , If you want to save an extra copy every time index.html perhaps css Replace the contents of the file with the packaged contents , Will waste a lot of time , Fortunately Untiy Allow us to customize the packaged template
We need to be in Assets Create a folder named WebGLTemplates, This is used to store all templates , And then in WebGLTemplates Next, create a folder , The name is the name of our template , Then put our template resources in this file , for example 
here , We created a TestTemplates The template of
It contains the template resources we need and Index.html file
Be careful : If you use your own modified untiy Packaging template provided , Be sure to put out the bag TemplateData Put it in your Custom Templates folder , As shown in my picture
After setting up the template , stay ProjectSettings/Player Inside h5/Resolution and Presentation Choose to use our custom template 
边栏推荐
猜你喜欢

Lumion 11.0软件安装包下载及安装教程

牛客编程题--必刷101之双指针篇

C#/VB.NET 删除Word文档中的水印

Stm32f4 --- PWM output

软件测试——Jmeter接口测试之常用断言

数字滚动增加效果

【论文阅读|深读】 GraphSAGE:Inductive Representation Learning on Large Graphs

Google Earth Engine(GEE)——Landsat 全球土地调查 1975年数据集

Recommended collection!! Which is the best flutter status management plug-in? Please look at the ranking list of yard farmers on the island!

Go swagger use
随机推荐
Leetcode:minimum_depth_of_binary_tree解决问题的方法
Tips for web development: skillfully use ThreadLocal to avoid layer by layer value transmission
Draco - glTF模型压缩利器
The empirical asset pricing package (EAP) can be installed through pypi
Data connection mode in low code platform (Part 1)
6-6 vulnerability exploitation SSH security defense
【论文阅读|深读】 GraphSAGE:Inductive Representation Learning on Large Graphs
postgresql之整体查询大致过程
安全交付工程师
The last line of defense of cloud primary mixing department: node waterline design
Go swagger use
New generation cloud native message queue (I)
写作系列之contribution
[server data recovery] data recovery case of a Dell server crash caused by raid damage
压缩 js 代码就用 terser
Leetcode:minimum_ depth_ of_ binary_ Tree solutions
记一次JAP查询导致OOM的问题分析
[unity notes] screen coordinates to ugui coordinates
Ali yunyili: how does yunyuansheng solve the problem of reducing costs and improving efficiency?
Summer Challenge database Xueba notes (Part 2)~