当前位置:网站首页>unity 自定义webgl打包模板
unity 自定义webgl打包模板
2022-07-06 18:43:00 【吴梓穆】
对于webgl项目,我们经常需要修改index.html里的内容,但是每次打包,都会覆盖上次的内容,如果每次都要额外保存一份index.html或者css文件的内容再替换掉打包的内容,会浪费很多时间,好在Untiy允许我们自定义打包的模板
我们需要在Assets里创建一个文件夹名字叫 WebGLTemplates,这里用来存放所有的模板,然后在WebGLTemplates下再建一个文件夹,名字为我们模板的名字,然后在这个文件里放入我们的模板资源,例如
这里,我们创建了一个名为TestTemplates的模板
其中放了我们需要的模板资源和Index.html文件
注意:如果你使用了自己修改的untiy提供的打包模板,务必把打出的包里的TemplateData放到你的自定义模板文件夹里,正如我图片里展示的一样
设置好模板后,在ProjectSettings/Player里的h5/Resolution and Presentation里选择使用我们的自定义模板即可
边栏推荐
- Sensor: introduction of soil moisture sensor (xh-m214) and STM32 drive code
- ZABBIX 5.0: automatically monitor Alibaba cloud RDS through LLD
- 本周 火火火火 的开源项目!
- Douban average 9 x. Five God books in the distributed field!
- Zhang Ping'an: accelerate cloud digital innovation and jointly build an industrial smart ecosystem
- Collection recommandée!! Quel plug - in de gestion d'état flutter est le plus fort? Regardez le classement des manons de l'île, s'il vous plaît!
- 激光雷达:Ouster OS产品介绍及使用方法
- pgpool-II和pgpoolAdmin的使用
- 如何从0到1构建32Core树莓派集群
- Several classes and functions that must be clarified when using Ceres to slam
猜你喜欢
Stm32f4 --- general timer update interrupt
Flir Blackfly S 工业相机:自动曝光配置及代码
leetcode:736. Lisp 语法解析【花里胡哨 + 栈 + 状态enumaotu + slots】
压缩 js 代码就用 terser
Tiflash source code reading (IV) design and implementation analysis of tiflash DDL module
传感器:土壤湿度传感器(XH-M214)介绍及stm32驱动代码
postgresql之integerset
Time synchronization of livox lidar hardware -- PPS method
fiddler的使用
New generation cloud native message queue (I)
随机推荐
最近小程序开发记录
阿里云中间件开源往事
Halcon instance to opencvsharp (C openCV) implementation -- bottle mouth defect detection (with source code)
[paper reading | deep reading] rolne: improving the quality of network embedding with structural role proximity
Draco - gltf model compression tool
FLIR blackfly s usb3 industrial camera: how to use counters and timers
[C # notes] reading and writing of the contents of text files
[C # notes] use file stream to copy files
SchedulX V1.4.0及SaaS版发布,免费体验降本增效高级功能!
A new path for enterprise mid Platform Construction -- low code platform
张平安:加快云上数字创新,共建产业智慧生态
Recommended collection!! Which is the best flutter status management plug-in? Please look at the ranking list of yard farmers on the island!
处理streamlit库上传的图片文件
How to build a 32core raspberry pie cluster from 0 to 1
Introduction to RC oscillator and crystal oscillator
老板被隔离了
猿桌派第三季开播在即,打开出海浪潮下的开发者新视野
B站6月榜单丨飞瓜数据UP主成长排行榜(哔哩哔哩平台)发布!
C#/VB.NET 删除Word文檔中的水印
UC伯克利助理教授Jacob Steinhardt预测AI基准性能:AI在数学等领域的进展比预想要快,但鲁棒性基准性能进展较慢