UnityEditor.Scripting.Compilers.ScriptCompilerBase.CompilationHadFailure ()反复报错解决方案

UnityEditor.Scripting.Compilers.ScriptCompilerBase.CompilationHadFailure ()反复报错解决方案

新建一个C#脚本,或者改动脚本都会出现下面的报错,而且是不停得刷屏报错。
UnityEditor.Scripting.Compilers.ScriptCompilerBase.CompilationHadFailure () (at C:/buildslave/unity/build/Editor/Mono/Scripting/Compilers/ScriptCompilerBase.cs:426)
UnityEditor.Scripting.Compilers.ScriptCompilerBase.CompilationHadFailure () (at C:/buildslave/unity/build/Editor/Mono/Scripting/Compilers/ScriptCompilerBase.cs:426)
UnityEditor.Scripting.Compilers.ScriptCompilerBase.CompilationHadFailure () (at C:/buildslave/unity/build/Editor/Mono/Scripting/Compilers/ScriptCompilerBase.cs:426)
UnityEditor.Scripting.Compilers.ScriptCompilerBase.CompilationHadFailure () (at C:/buildslave/unity/build/Editor/Mono/Scripting/Compilers/ScriptCompilerBase.cs:426)

解决方案:

Edit->ProjectSettings->Player->OtherSettings->ScriptingRuntimeVersion* 改成.NET 4.x Equivalent。重启即可解决。
在这里插入图片描述
在国内搜索引擎搜了一圈找不到解决方案,有文章说卸载杀毒软件之类的,也解决不了。去国外论坛找到了方法,遂将方法贴于此。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Key Features Become a Unity master by creating a practical, in-depth game-development project with Unity Use advanced C# scripting to unlock the complete potential of Unity 5 Customize your own Unity 5 editor as per your game requirements Book Description Do you want to take the leap from an everyday Unity developer to a pro game developer? Well, look no further! This book is your one stop solution to creating mesmerizing games with life like features and amazing game play capabilities. In the process you will dive deep into the Unity architecture, create expansive game worlds, work with the Unity 5 rendering engine that will give your game that extra. You will create individual game components, use efficient animation techniques, and implement the collision and physics simulation engine to its fullest. By the end of the book, you will become a pro game developer who is confident enough to create his own advanced-level games. What you will learn Explore hands-on tasks and real-world scenarios to make a Unity horror adventure game Create enemy characters that act intelligently and make reasoned decisions Use data files to save and restore game data in a way that is platform-agnostic Migrate your game to VR platforms Use Navigation Meshes, Occlusion Culling, and the Profiler tools Work confidently with GameObjects, Rotations, and Transformations Understand specific gameplay features such as AI enemies, Inventory Systems, and Level Design Table of Contents Chapter 1. Preparation and Asset-Configuring Chapter 2. Level Design and Structure Chapter 3. Player Controls - Movement Chapter 4. Player Controls - Typing and Health Chapter 5. Enemies and Artificial Intelligence Chapter 6. Project Management and Version Control Chapter 7. Persistent Data - Load and Save Game States Chapter 8. Performance, Optimization, Mobiles, and More

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值