当前位置:网站首页>unity打包webgl 部署到本地Web服务器
unity打包webgl 部署到本地Web服务器
2022-08-07 10:01:00 【云小川】
本来是测试 粒子特效 在Web端是否可以使用
0.效果

1.打开Web服务,打开控制面板-->程序-->启用或关闭功能-->Internet Infomation Services,全部打勾,确认即可

2.网站配置,点击此电脑,点击右键-->管理-->服务和应用程序-->Internet Infomation Services--网站


3.新建一个网站:
首先将打包出来的WebGL项目(有index.html)放置到对应路径, 接着点击网站-->新建一个网站


4.网页上输入:127.0.0.1:8080 查看效果即可
报错问题:1.WebGL build error :Uncaught SyntaxError: Unexpected token < || UnityLoader.js is not a function (SOLVED)
解决:
打开一个新的记事本文本文件。
将此文件另存为“web.config”,放置在打包出来的WebGL项目(index.html)旁边
双击 web.config 文件,打开粘贴以下代码:
<configuration> <system.webServer> <staticContent> <mimeMap fileExtension=".unityweb" mimeType ="TYPE/SUBTYPE" /> </staticContent> </system.webServer> </configuration>
边栏推荐
- Go语言的其他高级特性
- 【位带操作对寄存器赋值】基于ADuCM4050的GPIO复用模式初始化
- [Flash programming of Autosar memory stack Memory Stack 4.Tc397]
- 数据库-备份
- Query disk usage of files and directories
- (八)DDR_PHY架构及功能——(PUB组成、初始化及Training流程、Clock关系)
- Excel export operation based on ABP and Magiccodes
- MASA Stack 第三期社区例会
- 求平均数解决溢出问题的方法
- UGUI系列-实现进度条效果(Unity3D)
猜你喜欢

大厂外包,值得拥有吗?

微突发丢包的艺术

字符设备主设备号和次设备号的分配

During the meeting, I was scolded by the leader for more than 10 minutes. The scolding made me almost cry, and my voice was shaking.

China's mobile phones continue to innovate, and the full screen goes further, leading mobile phone innovation

100天精通Andriod逆向——第1天:ADB原理及其常用命令

12 个适合做外包项目的开源后台管理系统

leetcode 26. 删除有序数组中的重复项(实现unique函数)

Material Design

数据库分表之雪花算法
随机推荐
中国手机持续创新,全面屏再进一步,引领手机创新
The third community meeting of MASA Stack
GPT - 3 combination DALL e., 60 seconds to get the game set and original animation!After the net friend to see: want to play this game
数据库-备份
【C语言】汉诺塔
csv模块
自定义推送铃声插件遇到的问题
LVS+Keepalived high availability cluster deployment
unipush2.0教程
The principle and source code of redis - the principle of master-slave replication
uniapp本地插件列表为空的问题
Automatic processing software for geometric data topology errors based on FME
pytorch中的优化器
强化学习入门 第四讲 时间差分法(TD方法)
数据库表查询
[Bit band operation to register assignment] GPIO multiplexing mode initialization based on ADuCM4050
UGUI系列-列表添加物理效果(Unity3D)
leetcode 27. 移除元素
1324_FreeRTOS队列创建函数实现分析
(笔记整理未完成)【图论】最近公共祖先