当前位置:网站首页>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里选择使用我们的自定义模板即可
边栏推荐
- postgresql之integerset
- Halcon实例转OpenCvSharp(C# OpenCV)实现--瓶口缺陷检测(附源码)
- The cities research center of New York University recruits master of science and postdoctoral students
- [unity] upgraded version · Excel data analysis, automatically create corresponding C classes, automatically create scriptableobject generation classes, and automatically serialize asset files
- 【LeetCode】Day97-移除链表元素
- Sensor: DS1302 clock chip and driver code
- Introduction to the internal structure of the data directory of PostgreSQL
- GEE升级,可以实现一件run tasks
- 猿桌派第三季开播在即,打开出海浪潮下的开发者新视野
- Time synchronization of livox lidar hardware -- PPS method
猜你喜欢

The boss is quarantined

【森城市】GIS数据漫谈(二)

Stm32f4 --- general timer update interrupt

Flir Blackfly S USB3 工业相机:计数器和定时器的使用方法

Draco - glTF模型压缩利器

Draco - gltf model compression tool

postgresql之整体查询大致过程

Zhang Ping'an: accelerate cloud digital innovation and jointly build an industrial smart ecosystem

Blackfly s usb3 industrial camera: buffer processing

【论文阅读|深读】 GraphSAGE:Inductive Representation Learning on Large Graphs
随机推荐
The last line of defense of cloud primary mixing department: node waterline design
fiddler的使用
C#/VB.NET 删除Word文档中的水印
建議收藏!!Flutter狀態管理插件哪家强?請看島上碼農的排行榜!
FLIR blackfly s industrial camera: configure multiple cameras for synchronous shooting
3D laser slam: time synchronization of livox lidar hardware
pgpool-II和pgpoolAdmin的使用
C # / vb. Net supprime le filigrane d'un document word
Halcon实例转OpenCvSharp(C# OpenCV)实现--瓶口缺陷检测(附源码)
Seconds understand the delay and timing function of wechat applet
使用Ceres进行slam必须要弄清楚的几个类和函数
【森城市】GIS数据漫谈(二)
4 -- Xintang nuc980 mount initramfs NFS file system
[paper reading | deep reading] dngr:deep neural networks for learning graph representations
Summer Challenge database Xueba notes (Part 2)~
张平安:加快云上数字创新,共建产业智慧生态
Halcon knowledge: segment_ contours_ XLD operator
[C # notes] use file stream to copy files
处理streamlit库上传的图片文件
猿桌派第三季开播在即,打开出海浪潮下的开发者新视野