unity异常:InvalidOperationException: Burst failed to compile the function pointer `Int32

这篇具有很好参考价值的文章主要介绍了unity异常:InvalidOperationException: Burst failed to compile the function pointer `Int32。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

异常信息具体如下:

InvalidOperationException: Burst failed to compile the function pointer `Int32 ValidateCollinear$BurstManaged(Unity.Mathematics.float2*, Int32, Single)`
Unity.Burst.BurstCompiler.Compile (System.Object delegateObj, System.Reflection.MethodInfo methodInfo, System.Boolean isFunctionPointer, System.Boolean isILPostProcessing) (at Library/PackageCache/com.unity.burst@1.8.4/Runtime/BurstCompiler.cs:465)
Unity.Burst.BurstCompiler.CompileILPPMethod2 (System.RuntimeMethodHandle burstMethodHandle) (at Library/PackageCache/com.unity.burst@1.8.4/Runtime/BurstCompiler.cs:226)
UnityEditor.U2D.Animation.TriangulationUtility+ValidateCollinear_0000072E$BurstDirectCall.Constructor () (at <041734514971422b990000a1a12760aa>:0)
UnityEditor.U2D.Animation.TriangulationUtility+ValidateCollinear_0000072E$BurstDirectCall..cctor () (at <041734514971422b990000a1a12760aa>:0)
Rethrow as TypeInitializationException: The type initializer for 'UnityEditor.U2D.Animation.ValidateCollinear_0000072E$BurstDirectCall' threw an exception.
$BurstDirectCallInitializer.Initialize () (at <041734514971422b990000a1a12760aa>:0)

 重点看InvalidOperationException: Burst failed to compile the function pointer `Int32

说明输入有问题,这是因为unity版本和输入系统版本不匹配导致,输入系统版本旧了

解决:

edit==>project settings ==>  Player ==> other settings ==> Active Input Handling 

设置成新版 或者 both就可以!

根据你的项目需要和使用的 Unity 版本,选择不同的选项可能会对输入系统产生影响,例如:

  • 如果你的项目需要使用旧版 Unity 的输入功能,你应该选择 Input Manager 选项。
  • 如果你正在使用 Unity 2019.1 或更高版本,并且想使用新版的 Unity 输入系统,你应该选择 Input System Package 选项。

无论你选择哪个选项,你都需要相应地更新和配置你的输入系统,以确保它可以与你的项目一起正常工作。文章来源地址https://www.toymoban.com/news/detail-736192.html

到了这里,关于unity异常:InvalidOperationException: Burst failed to compile the function pointer `Int32的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包赞助服务器费用

相关文章

  • UE5 UE4 打包报错Failed to compile material 解决

    UE5 UE4 打包报错Failed to compile material 解决

    参考:https://forums.unrealengine.com/t/failed-to-compile-material-for-pcd3d_sm5-warning/385087 https://forums.unrealengine.com/t/failed-to-compile-material-for-platform-pcd3d-sm4/436176 报错:Failed to compile Material for platform PCD3D_SM5 ..... 解决方法:在project settings中,找到 Packaging - share material shader code中,去掉勾选

    2024年01月17日
    浏览(14)
  • Android问题笔记-Android studio 出现Failed to compile values file.错误

    Android问题笔记-Android studio 出现Failed to compile values file.错误

    点击跳转=Unity3D特效百例 点击跳转=案例项目实战源码 点击跳转=游戏脚本-辅助自动化 点击跳转=Android控件全解手册 点击跳转=Scratch编程案例 点击跳转=软考全系列 专注于 Android/Unity 和各种游戏开发技巧,以及 各种资源分享 (网站、工具、素材、源码、游戏等) 有什么需要欢

    2024年02月11日
    浏览(10)
  • SpringBoot:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile

    SpringBoot:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile

     首先以上就是我的报错问题,我这个出现的情况就是刚刚创建一个springboot项目,还没写任何东西,刚打算运行一下,就产生了这个问题,在网上也看了很多文章,有人说可能是jdk版本和自己本地的版本不对,大家也可以试一下,先把jdk版本的地方都修改正确。但是这个对于

    2024年02月13日
    浏览(16)
  • Maven报错:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile之解决方法

    Maven报错:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile之解决方法

            小编在使用maven工具进行项目编译时,报出了下面的错误: 方法一: 1、找到settings ---Build,Excution,Deployment --- Compiler---java compiler :  2、可能报错的地方:Project Structure中 ,  project、moudle和SDKs都要检查: 修改完成之后重新进行 compiler,显示成功,最重要的就是

    2024年02月11日
    浏览(11)
  • Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.10.1:compile和Error:(3, 32) j

    Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.10.1:compile和Error:(3, 32) j

    和 创建 SpringBoot 项目,启动报错 百度查询了很多解决办法,依然会出现下图所示报错 Error:java: 无效的源发行版: 14 处理办法: 保证编译jdk版本为项目JDK 解决办法,修改为当前系统安装太多 jdk版本 ,博主为 jdk8, 所以改为 8 依然报错 Error:java: 无效的目标发行版: 17 解决办法

    2024年02月12日
    浏览(56)
  • idea报错:[ERROR] Failed to execute goal org.apache.maven.plugins_maven-compiler-plugin_3.11.0_compile

    问题描述 在idea中打包springboot项目时报错: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile (default-compile) on project helloworld: Fatal error compiling: 无效的标记: --release - 原因分析 maven-compliler-plugin版本与maven版本不一致,Maven版本太低或maven-compiler-plugin版本过高

    2024年02月13日
    浏览(13)
  • ERROR Failed to compile with 2 errors These relative modules were not found:

    ERROR Failed to compile with 2 errors These relative modules were not found:

     提示在./node_modules/flatgeobuf/lib/mjs/packedrtree.js中找不到./config.js ./node_modules/flatgeobuf/lib/mjs/generic/featurecollection.js 中找不到../logger.js 如果是用vscode编写,按住ctrl+报错文件名 进入到该报错文件 根据引入  import Config from \\\'./config.js\\\' 去寻找路径\\\'./\\\'下有没有config.js文件 发现只有\\\"Conf

    2024年02月02日
    浏览(14)
  • idea编译maven项目报错:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile

    创建了一个maven工程,编译时报错 Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile (default-compile) on project mybatisplus: Fatal error compiling: 无效的标记: --release - [Help 1] 项目中maven-plugin版本不匹配。我的IDEA版本2023.2.3,JDK版本为1.8.我是把自己的maven版本降低到3.5.1,编

    2024年02月05日
    浏览(48)
  • error when starting dev server:Error: Failed to resolve vue/compiler-sfc.

    error when starting dev server:Error: Failed to resolve vue/compiler-sfc.

    对于node 的包管理工具,我一般习惯用 yarn,但是最近使用 yarn 创建前端项目的时候出了一些问题。 yarn create vite vite-project 报错如下: error when starting dev server: Error: Failed to resolve vue/compiler-sfc. @vitejs/plugin-vue requires vue (=3.2.25) to be present in the dependency tree. 我刚开始以为是 vite 的

    2024年02月02日
    浏览(26)
  • 解决:UserWarning: Failed to initialize NumPy: module compiled against API version 0xf but this version

    1.问题 import torch时报错:UserWarning: Failed to initialize NumPy: module compiled against API version 0xf but this version 2.原因 numpy版本和pytorch所需的numpy版本不匹配 3.解决方案 (1) 卸载现有numpy版本,pip uninstall numpy (2) 安装匹配的版本,pip install tensorflow,自动补全安装版本匹配的numpy

    2024年02月12日
    浏览(13)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包