当前位置:网站首页>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里选择使用我们的自定义模板即可
边栏推荐
- go swagger使用
- 压缩 js 代码就用 terser
- Schedulx v1.4.0 and SaaS versions are released, and you can experience the advanced functions of cost reduction and efficiency increase for free!
- The cities research center of New York University recruits master of science and postdoctoral students
- Why am I warned that the 'CMAKE_ TOOLCHAIN_ FILE' variable is not used by the project?
- postgresql之整体查询大致过程
- 本周 火火火火 的开源项目!
- 15million employees are easy to manage, and the cloud native database gaussdb makes HR office more efficient
- 3D laser slam: time synchronization of livox lidar hardware
- Big guys gather | nextarch foundation cloud development meetup is coming!
猜你喜欢
![[unity] upgraded version · Excel data analysis, automatically create corresponding C classes, automatically create scriptableobject generation classes, and automatically serialize asset files](/img/20/f7fc2204ca165dcea4af25cb054e9b.png)
[unity] upgraded version · Excel data analysis, automatically create corresponding C classes, automatically create scriptableobject generation classes, and automatically serialize asset files

豆瓣平均 9.x,分布式领域的 5 本神书!

云原生混部最后一道防线:节点水位线设计

将截断字符串或二进制数据

【论文阅读|深读】DNGR:Deep Neural Networks for Learning Graph Representations

FLIR blackfly s usb3 industrial camera: how to use counters and timers

低代码平台中的数据连接方式(上)

Tiflash source code reading (IV) design and implementation analysis of tiflash DDL module

SchedulX V1.4.0及SaaS版发布,免费体验降本增效高级功能!
![[paper reading | deep reading] graphsage:inductive representation learning on large graphs](/img/fe/3d4ccfa79a9624ac4901feeea1e69f.png)
[paper reading | deep reading] graphsage:inductive representation learning on large graphs
随机推荐
Flir Blackfly S 工业相机 介绍
Web3的先锋兵:虚拟人
Halcon knowledge: segment_ contours_ XLD operator
Flir Blackfly S 工业相机:自动曝光配置及代码
3--新唐nuc980 kernel支持jffs2, Jffs2文件系统制作, 内核挂载jffs2, uboot网口设置,uboot支持tftp
Zhang Ping'an: accelerate cloud digital innovation and jointly build an industrial smart ecosystem
go swagger使用
Yyds dry goods inventory # solve the real problem of famous enterprises: maximum difference
真实项目,用微信小程序开门编码实现(完结)
投资的再思考
New generation cloud native message queue (I)
Draco - glTF模型压缩利器
Real project, realized by wechat applet opening code (end)
如何从0到1构建32Core树莓派集群
How to build a 32core raspberry pie cluster from 0 to 1
Vingt - trois mille feuilles? "Yang mou" derrière l'explosion de la consommation végétale
4 -- Xintang nuc980 mount initramfs NFS file system
处理streamlit库上传的图片文件
传感器:DS1302时钟芯片及驱动代码
FLIR blackfly s industrial camera: configure multiple cameras for synchronous shooting