cost 195 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 ...

Unity CIL 中的致命錯誤 Linker - 與系統文件夾沖突

[英]Fatal error in Unity CIL Linker - conflict with a System folder

伙計們。 所以,問題是,當我嘗試構建 IL2CPP 時,我收到了: 我一直在尋找這個問題的答案,但它與系統文件夾發生沖突的事實讓我很沮喪。 Unity版本是2021.2.11f1,Mono build creates就好了。 有人可以幫忙嗎? ...

列表的 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 處停止。 我與錯誤相關的三個類: 該代碼適用於上面的注釋行 ...

在 Hololens 2 上處理文件(UWP 到 .NET)

[英]Working with Files on Hololens 2 (UWP to .NET)

我正在使用 Unity 為 HoloLens 2 開發應用程序。 我仍然很困惑如何連接 UWP 環境和 .NET API。 我想讀取文本文件(.txt) 以及二進制文件(.raw)。 在使用 Hololens(UWP 環境)時,我使用Windows.Storage FileOpenPicker() ...

C# System.Type.GetType(string) 返回嵌套的 class 而不是全局 class

[英]C# System.Type.GetType(string) returns nested class instead of the global class

我有以下代碼結構作為示例: 問題是System.Type.GetType("Character")將返回任何名為 Character 而不是 global::Character 的嵌套 class。 例子: 從字符串中獲取類型 global::Character 的正確方法是什么? 對於上下文,我 ...

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; ...

Unity Android Il2CPP Build 加載資產包后不播放 animation

[英]Unity Android Il2CPP Build Not playing animation after loading Asset bundle

我在 Mono 中運行 assetbundle 構建 animation 工作正常(它在編輯器中也工作正常)當我創建 IL2CPP 構建然后加載 assetbundle animation 不工作。 統一版本:2020.3.3f1 有沒有人以前遇到過這個問題,如果有,請提供解決方案 ...

異常:il2cpp.exe 沒有正常運行

[英]Exception: il2cpp.exe did not run properly

我無法構建 Android。Exception: C:\Program Files\Unity\Editor\Data\il2cpp/build/deploy/net471/il2cpp.exe did not run properly! Exception: C:\Program Files\Un ...

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