当前位置:网站首页>Unity与WebGL的相爱相杀
Unity与WebGL的相爱相杀
2022-07-07 21:47:00 【@小杨同学.】
文章目录
设置IIS本地服务器
提示:搭建本地,UnityWebGL发布在IIS服务器进行测试运行:
原文博主链接:UnityWebGL发布在IIS服务器进行测试运行
- 打开控制面板->程序->启用或关闭Windows功能->启用IIS,所有选项都勾上


2.在控制面板右上角点击 查看方式-大图标,找到管理工具-Internet Information Services (IIS)管理器

3.新建网址 名字英文随便起 物理路径就选你打包出来的WebGL项目路径 IP地址下拉框可以选择 端口号自己写一个,例如8082 点击确定

4.在网站列表点击刚刚新建立的网站,双击MINE类型,右键-添加, 拓展名:.unityweb,MINE类型:application/binary
注意:Unity打出的web包,记得勾选一下选项,否则会有错误产生(Failed to load resource: the server responded with a status of 404 (Not Found))
1.iis配置完成,打开web包出错
示例:IIS由于出现权限不足而无法读取配置文件解决方案,如果你也遇到了这个问题可以参考这位博主的博客。
权限不足无法读取配置文件
使用Unity开发WebGL功能分类
1.WebGL打开本地选中文件

基于unity 2020.3.30f1整合的package包,项目中亲测可用。
点击下载Demo
2.Unity 输入框InputField输入问题

WebGLSupport插件全屏幕模式下会倒着输入字符,且不会打出中文
3.Unity Text组件不显示字体
unity打包成web端,Text组件的默认Font Arial字体会显示不出来!!!
需要去网上下载可以用的字体,或者找你电脑本地存放字体的C盘下,路径为C:\Windows\Fonts导入一个格式为.ttf的中文字体,将Arial字体替换成导入的中文字体即可。
- [ 这篇文章后续还会根据项目上遇到的问题一直持续更新的]
边栏推荐
- Visual studio 2019 installation
- Install mxnet GPU version
- Unity local coordinates and world coordinates
- GBU1510-ASEMI电源专用15A整流桥GBU1510
- . Net automapper use
- 全面掌控!打造智慧城市建设的“领导驾驶舱”
- How to choose the appropriate automated testing tools?
- PCL .vtk文件与.pcd的相互转换
- [environment] pycharm sets the tool to convert QRC into py file
- Debezium series: binlogreader for source code reading
猜你喜欢

Leetcode206. Reverse linked list

PCL .vtk文件与.pcd的相互转换
Redis官方ORM框架比RedisTemplate更优雅

不夸张地说,这是我见过最通俗易懂的,pytest入门基础教程

Line test - graphic reasoning - 3 - symmetric graphic class

Digital transformation: five steps to promote enterprise progress

Time convolution Network + soft threshold + attention mechanism to realize residual life prediction of mechanical equipment

行测-图形推理-5-一笔画类

Microservice Remote debug, nocalhost + rainbond microservice Development second Bomb
![VTOL in Px4_ att_ Control source code analysis [supplement]](/img/7a/4ce0c939b9259faf59c52da2587693.jpg)
VTOL in Px4_ att_ Control source code analysis [supplement]
随机推荐
Class implementation of linear stack and linear queue (another binary tree pointer version)
Form组件常用校验规则-2(持续更新中~)
Debezium系列之:支持 mysql8 的 set role 語句
C development -- WPF simple animation
Apple further entered the financial sector through the 'virtual card' security function in IOS 16
How pyGame rotates pictures
7-51 combination of two ordered linked list sequences
Redis集群安装
This experimental syntax requires enabling the parser plugin: ‘optionalChaining‘
关于海康ipc的几个参数
How to choose the appropriate automated testing tools?
Get the exact offset of the element
Microservice Remote debug, nocalhost + rainbond microservice Development second Bomb
Yarn开启ACL用户认证之后无法查看Yarn历史任务日志解决办法
Revit secondary development - intercept project error / warning pop-up
Revit secondary development - modify wall thickness
Unity FAQ (I) lack of references
Debezium系列之:支持 mysql8 的 set role 语句
「开源摘星计划」Loki实现Harbor日志的高效管理
ASP.NET Core入门五