unity InvalidCastException: This type must add to CSharpCallLua

unity版本:2020.3
解决方法:PlayerSettings>Other Settings-> API Compatibility Level 将.NET Standard 2.0更换为.NET 4.x

图片.png
图片.png
图片.png

注意:不要在运行状态下修改,因为不给修改
没有运行状态:


图片.png

运行状态:


图片.png

你可能感兴趣的:(unity InvalidCastException: This type must add to CSharpCallLua)