![](/img/trans.png)
[英]Unity, can I publish to Google Play an app with only 32-bit?
我有一個在 Unity 上開發的 Android 應用程序。 我可以在沒有 IL2CPP 的情況下將它發布到 Google Play 嗎? (當使用 IL2CPP 構建時它工作不正確,但正確 - 使用 Mono)。 ...
[英]Unity, can I publish to Google Play an app with only 32-bit?
我有一個在 Unity 上開發的 Android 應用程序。 我可以在沒有 IL2CPP 的情況下將它發布到 Google Play 嗎? (當使用 IL2CPP 構建時它工作不正確,但正確 - 使用 Mono)。 ...
[英]IL2CPP vs Mono scripting. How to find what breaks IL2CPP script?
我是 Unity 開發的新手,所以這對我來說是完全出乎意料的行為,我不知道如何處理。 使用 mono 編譯時,我的應用程序在 Android 10 設備上完美運行。 但是使用 IL2CPP 編譯會破壞應用程序的某些部分(場景中缺少整個復雜的 Object) 我嘗試檢查設備 adb logcat 日 ...
[英]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 ...
[英]Fatal error in Unity CIL Linker - conflict with a System folder
伙計們。 所以,問題是,當我嘗試構建 IL2CPP 時,我收到了: 我一直在尋找這個問題的答案,但它與系統文件夾發生沖突的事實讓我很沮喪。 Unity版本是2021.2.11f1,Mono build creates就好了。 有人可以幫忙嗎? ...
[英]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 處停止。 我與錯誤相關的三個類: 該代碼適用於上面的注釋行 ...
[英]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) returns nested class instead of the global class
我有以下代碼結構作為示例: 問題是System.Type.GetType("Character")將返回任何名為 Character 而不是 global::Character 的嵌套 class。 例子: 從字符串中獲取類型 global::Character 的正確方法是什么? 對於上下文,我 ...
[英]IL2CPP interfering with gravity (RigidBody)
我已經統一創建了一個應用程序來加載資產包。 當我加載資產包時,具有剛體組件且 isGravity 關閉的游戲對象工作正常。 但是當我啟用 isGravity 時,gameo 對象開始相互穿過。 此問題僅在 IL2CPP 構建中發生,但在 Mono 構建設置中一切正常。 我的統一版本是2019.4。 ...
[英]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 ...
[英]how to keep internal type while using il2cpp in Unity3d2020.3.22f
我的代碼: But il2cpp report 'System.Text.Json.Serialization.Converters.DictionaryOfTKeyTValueConverter 3[[System.Collections.Generic.Dictionary 2[[System ...
[英]I'm getting IL2CPP build error for some reason
出於某種原因,我遇到了構建錯誤。 我能夠使用 mono 清楚地構建我的項目。 我現在正在嘗試使用 IL2CPP 構建項目並遇到一些錯誤。 我試過了: 將 Windows 語言更改為英語。 其實我重裝了Windows 11。 並重新安裝 Unity、Visual Studio 和 sdk、ndk 等。 ...
[英]Unable to retrieve the runtime generic context for 'System.Collections.Generic.List
我創建了一個繼承自List的 class 用於我的 Unity-firebase 項目 porpouses。 接口如下(基本上用作序列化/反序列化): 此代碼適用於編輯器、運行時等,但是當我嘗試使用 IL2CPP 構建時(因為我的目標是移動商店),構建時出現以下錯誤: 我不明白錯誤消息,也沒有在谷歌 ...
[英]How to get the type of a il2cpp class for GameObject.FindObjectsOfTypeAll() UnityEngine function?
我正在嘗試在 UnityEngine 中使用 GameObject.FindObjectsOfTypeAll GameObject.FindObjectsOfTypeAll()並且它要求 Il2Cpp class,如果我這樣做GameObject.FindObjectsOfTypeAll(type ...
[英]Dictionary<string, int> throwing exception when serializing with protobuf-net
我正在嘗試讓 protobuf.net 與 Unity 一起工作。 從我最近幾天所做的大量研究來看,讓兩者一起正常工作似乎很復雜。 在使用 IL2CPP 進行構建時,我現在遇到了一個無法解決的問題。 對於某些類型,序列化似乎有時會失敗,例如 Dictionary<string, int> ...
[英]Unity Android Il2CPP Build Not playing animation after loading Asset bundle
我在 Mono 中運行 assetbundle 構建 animation 工作正常(它在編輯器中也工作正常)當我創建 IL2CPP 構建然后加載 assetbundle animation 不工作。 統一版本:2020.3.3f1 有沒有人以前遇到過這個問題,如果有,請提供解決方案 ...
[英]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 ...
[英]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中的指令不是有效的。 ...
[英]Error occurred when 'il2cpp Android build' in Unity
錯誤:利用: 統一 2021.1.9f1 -> ndk r21d Visual Studio 社區 2019 16.10.0 GoogleMobileAds-v6.0.0.unitypackage android studio 4.2.1 -> avd測試使用構建設置: - 最低 ...
[英]An error is thrown when trying to build a Unity project with il2cpp
我該如何解決這個問題? 連同 MONO,一切順利 我的 Unity 版本是 2021.1.9f1 我正在嘗試將項目構建為 apk 文件以在 Google Play 上發布 ...
[英]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. ...