当前位置:网站首页>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里选择使用我们的自定义模板即可
边栏推荐
- Time synchronization of livox lidar hardware -- PPS method
- 阿里云易立:云原生如何破解企业降本提效难题?
- [unity] upgraded version · Excel data analysis, automatically create corresponding C classes, automatically create scriptableobject generation classes, and automatically serialize asset files
- Flir Blackfly S 工业相机:自动曝光配置及代码
- A new path for enterprise mid Platform Construction -- low code platform
- 豆瓣平均 9.x,分布式领域的 5 本神书!
- Zhang Ping'an: accelerate cloud digital innovation and jointly build an industrial smart ecosystem
- 4--新唐nuc980 挂载initramfs nfs文件系统
- 【森城市】GIS数据漫谈(二)
- Alibaba cloud middleware open source past
猜你喜欢
Summer Challenge database Xueba notes (Part 2)~
New generation cloud native message queue (I)
How can reinforcement learning be used in medical imaging? A review of Emory University's latest "reinforcement learning medical image analysis", which expounds the latest RL medical image analysis co
The last line of defense of cloud primary mixing department: node waterline design
Several classes and functions that must be clarified when using Ceres to slam
Data connection mode in low code platform (Part 1)
How to build a 32core raspberry pie cluster from 0 to 1
Infrared camera: juge infrared mag32 product introduction
Time synchronization of livox lidar hardware -- PPS method
Blackfly s usb3 industrial camera: buffer processing
随机推荐
Several classes and functions that must be clarified when using Ceres to slam
Application analysis of face recognition
Zabbix 5.0:通过LLD方式自动化监控阿里云RDS
Lumion 11.0 software installation package download and installation tutorial
[unity notes] screen coordinates to ugui coordinates
Seconds understand the delay and timing function of wechat applet
Schedulx v1.4.0 and SaaS versions are released, and you can experience the advanced functions of cost reduction and efficiency increase for free!
[paper reading | deep reading] anrl: attributed network representation learning via deep neural networks
阿里云中间件开源往事
Draco - glTF模型压缩利器
Infrared camera: juge infrared mag32 product introduction
#夏日挑战赛#数据库学霸笔记(下)~
C#/VB. Net to delete watermarks in word documents
建議收藏!!Flutter狀態管理插件哪家强?請看島上碼農的排行榜!
A new path for enterprise mid Platform Construction -- low code platform
1--新唐nuc980 NUC980移植 UBOOT,从外部mx25l启动
如何从0到1构建32Core树莓派集群
C#/VB.NET 删除Word文档中的水印
[paper reading | deep reading] dngr:deep neural networks for learning graph representations
Untiy文本框的代码换行问题