当前位置:网站首页>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 
边栏推荐
- Integerset of PostgreSQL
- 软件测试——Jmeter接口测试之常用断言
- STM32 project -- Topic sharing (part)
- 慧通编程入门课程 - 2A闯关
- 实施MES管理系统时,哪些管理点是需要注意的
- Increase 900w+ playback in 1 month! Summarize 2 new trends of top flow qiafan in station B
- HAVE FUN | “飞船计划”活动最新进展
- 一本揭秘字节万台节点ClickHouse背后技术实现的白皮书来了!
- CSDN summer camp course project analysis
- unity webgl自适应网页尺寸
猜你喜欢
随机推荐
[paper reading | deep reading] dngr:deep neural networks for learning graph representations
MetaForce原力元宇宙佛萨奇2.0智能合约系统开发(源码部署)
投资的再思考
leetcode:736. LISP syntax parsing [flowery + stack + status enumaotu + slots]
Tips for web development: skillfully use ThreadLocal to avoid layer by layer value transmission
Introduction to FLIR blackfly s industrial camera
【森城市】GIS数据漫谈(二)
Use of pgpool II and pgpooladmin
The empirical asset pricing package (EAP) can be installed through pypi
MySQL
牛客编程题--必刷101之双指针篇
用全连接+softmax对图片的feature进行分类
Leetcode:minimum_ depth_ of_ binary_ Tree solutions
S120驱动器基本调试步骤总结
【软件测试】最全面试问题和回答,全文背熟不拿下offer算我输
一本揭秘字节万台节点ClickHouse背后技术实现的白皮书来了!
Difference and the difference between array and array structure and linked list
C#/VB.NET 删除Word文档中的水印
Draco - glTF模型压缩利器
HAVE FUN | “飞船计划”活动最新进展

![leetcode:5. Longest palindrome substring [DP + holding the tail of timeout]](/img/62/d4d5428f69fc221063a4f607750995.png)






