当前位置:网站首页>Unity WebGL RuntimeError: integer overflow
Unity WebGL RuntimeError: integer overflow
2022-08-11 05:02:00 【This is nine】
I found an integer overflow problem today while developing a web version project.
An error occurred running the Unity content on this page. See your browser JavaScript console for more info. The error was:
RuntimeError: integer overflow

A closer look is that there is a problem with WebAssembly instantiation.So I checked the packaged settings.
Let's take a look at WebAssembly in the packaging settingsArithmetic Exceptions
Contains an enumeration of different capture modes for WebAssembly code.
This enumeration is used in the WebGL platform to define the capture types used when performing arithmetic operations in WebAssembly code.
| throw | WebAssembly code rounds very large floating-point numbers to int when dividing by zeroThrows an exception in other cases. |
| ignore | This mode works by limiting floating point values to a reasonable range when performing arithmetic operationsAvoid pitfalls. |
Set to Ignore to ignore browser exception errors.
In this way, the error pop-up window will not pop up on the browser side and affect the program running logic.

边栏推荐
- BGP综合实验
- 2021 Network Planning Designer Afternoon Case Questions
- 元宇宙社交应用,靠什么吸引用户「为爱发电」?
- C statement: data storage
- C语句:数据存储
- Switches and routers technology - 26 - configure OSPF peripheral area
- 优化是一种习惯●出发点是“站在靠近临界“的地方
- 【无标题】2022年胺基化工艺考试题模拟考试题库及在线模拟考试
- Bubble sort and heap sort
- map and set - natural search and lookup semantics
猜你喜欢

论文笔记:BBN: Bilateral-Branch Network with Cumulative Learningfor Long-Tailed Visual Recognition

交换机和路由器技术-28-OSPF的NSSA区域

How IP-Guard prohibits running U disk programs

网络技能树

HAVE FUN | "SOFA Planet" spacecraft plan, the latest progress of source code analysis activities

Apache初体验
![ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: '/data/xxxx](/img/02/3896b29a955ae84a0f0326f0d2cabf.png)
ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: '/data/xxxx

交换机和路由器技术-25-OSPF多区域配置

Layered Architecture & SOA Architecture

IP-Guard如何禁止运行U盘程序
随机推荐
2022煤矿瓦斯检查考试题模拟考试题库及答案
Let's talk programming languages together
About data paging display
form表单提交数据库中文变成问号
【电商运营】社交媒体营销策略该如何制定?
交换机和路由器技术-27-OSPF路由重分发
C语言题解:谁是凶手!
About CC Attacks
guava RateLimiter均匀限流
Switch and Router Technology - 36-Port Mirroring
The sword refers to offer_abstract modeling capabilities
[QNX Hypervisor 2.2用户手册]10.15 vdev timer8254
-填涂颜色-
HAVE FUN | "SOFA Planet" spacecraft plan, the latest progress of source code analysis activities
【无标题】2022年胺基化工艺考试题模拟考试题库及在线模拟考试
Switches and routers technology - 26 - configure OSPF peripheral area
Solve the problem of multi-thread calling sql stored procedure
交换机和路由器技术-22/23-OSPF动态路由协议/链路状态同步过程
[FPGA tutorial case 49] Control case 1 - FPGA-based PID controller verilog implementation
Bubble sort and heap sort