当前位置:网站首页>Unity WebGL RuntimeError: integer overflow(整数溢出问题)
Unity WebGL RuntimeError: integer overflow(整数溢出问题)
2022-08-11 04:57:00 【九本才】
今天在开发Web版项目的时候发现整数溢出的问题。
An error occurred running the Unity content on this page. See your browser JavaScript console for more info. The error was:
RuntimeError: integer overflow
仔细查看是WebAssembly在实例化的时候出现了问题。于是我门查看一下打包的设置。
在打包设置里边我门看一下 WebAssembly Arithmetic Exceptions
包含 WebAssembly 代码的不同捕获模式的枚举。
此枚举在 WebGL 平台中用于定义在 WebAssembly 代码中执行算术运算时使用的捕获类型。
throw | WebAssembly 代码会在除以零、将非常大的浮点数舍入为 int 等情况下抛出异常。 |
ignore | 此模式通过在执行算术运算时将浮点值限制在合理范围内来避免陷阱。 |
设置为 Ignore,忽略掉浏览器的异常错误。
这样子就不会在浏览器端弹出报错弹窗而影响程序运行逻辑。
边栏推荐
- 应用层协议——DNS
- Project Practice Lecture 27: Application of Status Mode in Duplicate Brands
- Switch and Router Technology-33-Static NAT
- 「转」“搜索”的原理,架构,实现,实践,面试不用再怕了
- 如何将360全景图导出高清短视频分享到视频平台上?
- 网络协议1
- Harvesting of radio frequency energy
- 交换机和路由器技术-29-OSPF虚链路
- Dry goods: The principle and practice of server network card group technology
- [Note] Is the value of BatchSize the bigger the better?
猜你喜欢
Switch and Router Technology - 22/23 - OSPF Dynamic Routing Protocol/Link State Synchronization Process
CAD2020 打开错误报告 e06d7363h Exception at 13644F69h
Application layer protocol - DNS
3 模块二:科研工具使用
Switch and Router Technology - 36-Port Mirroring
leetcode 9. 回文数
如何将360全景图导出高清短视频分享到视频平台上?
How IP-Guard prohibits running U disk programs
Dry goods: The principle and practice of server network card group technology
应用层协议——DNS
随机推荐
[QNX Hypervisor 2.2用户手册]10.15 vdev timer8254
How IP-Guard prohibits running U disk programs
走出迷宫的最短路径
2.2 user manual] [QNX Hypervisor 10.15 vdev timer8254
Events and scheduled tasks in Mysql
网络安全培训机构哪家好?排名怎么选择?
一起Talk编程语言吧
Apache初体验
网络技能树
Kong实现禁止国外IP访问
交换机和路由器技术-22/23-OSPF动态路由协议/链路状态同步过程
Bubble sort and heap sort
send_sig: kernel execution flow
[E-commerce operation] How to formulate a social media marketing strategy?
form表单提交数据库中文变成问号
项目实战第二十七讲:状态模式在重名品牌中的应用
Redis: Solve the problem of modifying the same key with distributed high concurrency
Switch and Router Technology-27-OSPF Route Redistribution
C Language: Practical Debugging Tips
【Web3 系列开发教程——创建你的第一个 NFT(9)】如何在手机钱包里查看你的 NFT