当前位置:网站首页>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,忽略掉浏览器的异常错误。
这样子就不会在浏览器端弹出报错弹窗而影响程序运行逻辑。
边栏推荐
猜你喜欢
如何将360全景图导出高清短视频分享到视频平台上?
Switch and Router Technology-31-Extended ACL
How to add icons to web pages?
CAN/以太网转换器 CAN与以太网互联互通
交换机和路由器技术-34-动态NAT
Merkel Studio--OpenEuler Training Notes (1)
To break the bottleneck of transactional work, the gentleman signs the electronic contract to release the "source power" of HR!
[E-commerce operation] How to formulate a social media marketing strategy?
C language antithesis: who is the murderer!
async(异步)和await的使用
随机推荐
交换机和路由器技术-36-端口镜像
Events and scheduled tasks in Mysql
走出迷宫的最短路径
Smart Pointer Notes
C language antithesis: who is the murderer!
paddlepaddle implements CS_CE Loss and incorporates PaddleClas
1815. Get the maximum number of groups of fresh donuts state compression
The priority queue
zabbix构建企业级监控告警平台
论文笔记:BBN: Bilateral-Branch Network with Cumulative Learningfor Long-Tailed Visual Recognition
应用层协议——DNS
form form submission database Chinese becomes a question mark
Switch and Router Technology - 36-Port Mirroring
交换机和路由器技术-33-静态NAT
如何缓解压力、拒绝内耗【1】
svg-icon的使用方法(svg-sprite-loader插件)
网络技能树
K8s复习笔记7--Redis单机和Redis-cluster的K8S实现
Kong implements ban on foreign IP access
简历里写了会代码,却依然过不了面试这一关