cost 517 ms
IL2CPP 与 Mono 脚本。 如何找到破坏 IL2CPP 脚本的内容? - IL2CPP vs Mono scripting. How to find what breaks IL2CPP script?

我是 Unity 开发的新手,所以这对我来说是完全出乎意料的行为,我不知道如何处理。 使用 mono 编译时,我的应用程序在 Android 10 设备上完美运行。 但是使用 IL2CPP 编译会破坏应用程序的某些部分(场景中缺少整个复杂的 Object) 我尝试检查设备 adb logcat 日 ...

在 Android Studio 中导出和构建时,IL2CPP 构建失败,运行时构建类型更快 - IL2CPP build failed with faster runtime build type when exported and build in Android Studio

统一版本:2021.3.8f1 我将 Unity 游戏导出为 Android 库,并将构建保留在 Android Studio 中。 案例 1: IL2CPP Code Generation选项是Faster (smaller) builds 。 在这种情况下构建成功。 案例 2: IL2CPP C ...

列表的 DataContractSerializer 失败<bool>在 Android 上使用 Unity3d 的 IL2CPP 编译时出现“未生成提前 (AOT) 代码”错误</bool> - DataContractSerializer fails for List<bool> on Android when compiled using Unity3d's IL2CPP with "no ahead of time (AOT) code was generated" error

我已将序列化更改为 DataContracts,但现在我遇到了特定 class 的问题。 它在我的 Mac 上运行良好,但在使用 IL2CPP 构建时在我的 android 设备上运行良好。 线程在 writeObject function 处停止。 我与错误相关的三个类: 该代码适用于上面的注释行 ...

IL2CPP 干扰重力(刚体) - IL2CPP interfering with gravity (RigidBody)

我已经统一创建了一个应用程序来加载资产包。 当我加载资产包时,具有刚体组件且 isGravity 关闭的游戏对象工作正常。 但是当我启用 isGravity 时,gameo 对象开始相互穿过。 此问题仅在 IL2CPP 构建中发生,但在 Mono 构建设置中一切正常。 我的统一版本是2019.4。 ...

Unity3D的IL2CPP模式下如何通过P/Invoke使用IFileDialog COM接口? - How to use IFileDialog COM Interface by P/Invoke in IL2CPP mode of Unity3D?

我尝试在System.Windows.Forms中使用OpenFileDialog ,但是当我将项目构建类型从Mono切换到IL2CPP时,它不再起作用了。 在IL2CPP模式下,我仍然可以通过 Win32 API 使用该方法,但我找不到如何通过 P/Invoke 使用 IFileDialog CO ...

由于某种原因,我收到 IL2CPP 构建错误 - I'm getting IL2CPP build error for some reason

出于某种原因,我遇到了构建错误。 我能够使用 mono 清楚地构建我的项目。 我现在正在尝试使用 IL2CPP 构建项目并遇到一些错误。 我试过了: 将 Windows 语言更改为英语。 其实我重装了Windows 11。 并重新安装 Unity、Visual Studio 和 sdk、ndk 等。 ...

无法检索“System.Collections.Generic.List”的运行时通用上下文 - Unable to retrieve the runtime generic context for 'System.Collections.Generic.List

我创建了一个继承自List的 class 用于我的 Unity-firebase 项目 porpouses。 接口如下(基本上用作序列化/反序列化): 此代码适用于编辑器、运行时等,但是当我尝试使用 IL2CPP 构建时(因为我的目标是移动商店),构建时出现以下错误: 我不明白错误消息,也没有在谷歌 ...

字典<string, int>使用 protobuf.net 序列化时抛出异常</string,> - Dictionary<string, int> throwing exception when serializing with protobuf-net

我正在尝试让 protobuf.net 与 Unity 一起工作。 从我最近几天所做的大量研究来看,让两者一起正常工作似乎很复杂。 在使用 IL2CPP 进行构建时,我现在遇到了一个无法解决的问题。 对于某些类型,序列化似乎有时会失败,例如 Dictionary&lt;string, int&gt; ...

BL指令如何跳转到无效指令仍然可以正确工作 - How does BL instruction jump to invalid instruction still manage to work corretly

我正在练习对 il2cpp 统一项目进行逆向工程我做过的事情: 获取APK 使用Apktool提取文件使用Ghidra libunity.so或者IDA也可以) 我发现了一个有线指令块,例如: 我跟着bl FUN_004d9e00发现: 但事情是这样的, FUN_004d9e00中的指令不是有效的。 ...

如何使用 Il2CppInspector 将 C++ 中的 std::string 转换为 System.String? - How do I convert a std::string to System.String in C++ with Il2CppInspector?

我正在使用Il2CppInspector为 Unity 游戏生成脚手架。 我可以使用下面提供的函数将System.String (Il2CppInspector 中的app::String )转换为std::string 。 我将如何扭转这个过程; 如何将std::string转换为System. ...


 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM