当前位置:网站首页>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字体替换成导入的中文字体即可。
- [ 这篇文章后续还会根据项目上遇到的问题一直持续更新的]
边栏推荐
- ASEMI整流桥KBPC1510的型号数字代表什么
- LeetCode707. Design linked list
- Digital transformation: five steps to promote enterprise progress
- Ni9185 and ni9234 hardware settings in Ni Max
- 0-5vac to 4-20mA AC current isolated transmitter / conversion module
- php 获取图片信息的方法
- Debezium series: binlogreader for source code reading
- Revit secondary development - wall opening
- Typeorm automatically generates entity classes
- Failed to initialize rosdep after installing ROS
猜你喜欢

如何选择合适的自动化测试工具?

微服务远程Debug,Nocalhost + Rainbond微服务开发第二弹

Gazebo import the mapping model created by blender
![LeetCode142. Circular linked list II [two pointers, two methods for judging links in the linked list and finding ring points]](/img/5e/e442c8649b9123a9d9df7c0d61a564.jpg)
LeetCode142. Circular linked list II [two pointers, two methods for judging links in the linked list and finding ring points]

Line test - graphic reasoning - 3 - symmetric graphic class

Redis集群安装

Line test - graphic reasoning -5- one stroke class

行测-图形推理-3-对称图形类

Micro service remote debug, nocalhost + rainbow micro service development second bullet

Remember an experience of using selectmany
随机推荐
Leetcode interview question 02.07 Linked list intersection [double pointer]
Debezium系列之:源码阅读之BinlogReader
Typeorm automatically generates entity classes
Leetcode206. Reverse linked list
Revit secondary development - collision detection
GBU1510-ASEMI电源专用15A整流桥GBU1510
微服务架构开源框架详情介绍
软件测评中心▏自动化测试有哪些基本流程和注意事项?
Aspose. Words merge cells
数字化转型:五个步骤推动企业进步
不夸张地说,这是我见过最通俗易懂的,pytest入门基础教程
[environment] pycharm sets the tool to convert QRC into py file
Robot autonomous exploration DSVP: code parsing
Aspose. Word operation word document (I)
Remember an experience of using selectmany
Revit secondary development - get the thickness / length / height of the beam
The PHP source code of the new website + remove authorization / support burning goose instead of pumping
CTF exercise
Line test - graphic reasoning - 4 - alphabetic class
Basic knowledge of binary tree