Questions tagged [il2cpp]

For issues relating to the IL2CPP Unity scripting back-end.

IL2CPP is a Unity-developed scripting back-end which can be used as an alternative to Mono when building projects for some platforms. Therefore Unity converts IL code from scripts and assemblies into C++ code, before creating a native binary file (.exe, apk, .xap, for example) for a chosen platform.

153 questions
0
votes
0 answers

Modifying libil2cpp.so

this code is the original from metadata: public static int GetZhuoyueAttributeCount(int excellenceInfo) { if (excellenceInfo <= 0) { return 0; } int num = 0; int…
0
votes
0 answers

how do i get my coroutine to update every frame in my BepInEx plugin?

in this code, i am using bepinex and harmony to make a plugin for the game Sons of The Forest code for my plugin the goal of the code attached is to log the value of an in-game variable every second, but the value of the variables in the class…
0
votes
0 answers

Unity 2020.x Oculus app build IL2CPP failed for "Exception: Failed running response.rsp"

Building an oculus app with Unity 2020.x **IL2CPP **with target architecture **arm64 ** failed for: Exception: Failed running "response.rsp" stdout: Fatal error in Unity CIL Linker System.InvalidOperationException: No action for the assembly TinCan,…
Pnok
  • 11
  • 1
0
votes
0 answers

how can use Xaudio2 in Unity with ill2cpp

i am using SharpDx.dll & SharpDx.XAudio2.dll in Unity3D. The dll works fine in the editor. However, when I run the program after building Windows, an error occurs in the initialization part. The error log is as follows and a part of the source code…
MOGI
  • 21
  • 5
0
votes
0 answers

Execution failed for task ':unityLibrary:BuildIl2CppTask'

Execution failed for task ':unityLibrary:BuildIl2CppTask'. Process 'command '/Users/im700/Documents/work/apps/testpkg/unityLibrary/src/main/Il2CppOutputProject/IL2CPP/build/deploy/il2cpp'' finished with non-zero exit value 4 I got this error in my…
0
votes
0 answers

How to annotate the interface that is implemented in another C# library? (MessagePack's AOT Code Generation)

I have 3 C# libraries, it looks like A->B->C. A.csproj B.csproj I declared an interface in C IBall.cs public interface IBall { ...... } A struct in B Ball.cs public…
KZMan
  • 11
  • 2
0
votes
0 answers

Unity 2021 Can't Build In IL2CPP

I have installed IL2CPP plugin for Unity 2021.3.8f1 and have installed the newest version of Visual Studio Community 2022 from the official website but Unity still produces an error when building a Windows build using IL2CPP. What can I do to fix…
0
votes
0 answers

Unity Building apk with 'Scripting Backend' IL2CPP faild. But With mono it is successful

I am facing a strange problem. I am trying to build an Android project in Unity. The problem I am facing is that I am able to build the project successfully with the 'Scripting Backend' mono. But need to build it in 'IL2CPP' it fails. my unity…
Savad
  • 1,240
  • 3
  • 21
  • 50
0
votes
0 answers

How to edit the lib2cpp.so file of a unity build inside my Android Project

A third party created a unity project for me but they lost their project on their end. A guy had it on his laptop, never backed it up but he did send the integrated unity project for android. The only issue is that we need to change something inside…
0
votes
0 answers

I am facing build time error when build unity module in android studio. This is a il2cpp.exe error. I am using 2021.3.4f1 version of unity

Build file 'C:\Users\Ibtisam\Desktop\AndroidNativeExport\AndroidNativeExport\unityLibrary\build.gradle' line: 77 Execution failed for task ':unityLibrary:BuildIl2CppTask'. Process 'command…
0
votes
0 answers

Generate proto files from unity game use il2cpp

Hello i would like to regenerate the proto files from a unity game that use the GoogleProtobuf lib. I tried to use the generated reflection classes by GoogleProtobuf but the lib Cpp2Il from Samboy generate the class without body so i cannot invoke…
0
votes
0 answers

Unity 3D WebGL Build Error (il2cpp.exe did not run properly!)

I want to create and publish my Unity project with WebGL, but I'm getting such an error, I couldn't find the solution even in the unity community, can you help? I don't know much about using the site and I use translation sorry if I did something…
0
votes
0 answers

Error using AWS CognitoIdentity in Unity 2021.3.7 with IL2CPP as Scripting Backend

I'm trying to setup AWS Cognito in an Android project. I am able to use the library fine when using Mono, but it breaks with the below error when using IL2CPP as my scripting backend. The error occurs in both NuGet installation as well as…
0
votes
1 answer

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

guys. So, the issue is, when I'm trying to make an IL2CPP build, I recieve this: Building Library\Bee\artifacts\WinPlayerBuildProgram\ManagedStripped failed with…
0
votes
0 answers

Unable to access Short Throw ToF Reflectivity camera stream in unity il2cpp backend

I am working with the HoloLens 1 and am able to access the Short Throw ToF Reflectivity stream in UWP, but when i perform the same calls in unity i get the error Exception thrown at 0x775D6452 (KernelBase.dll) in ArUcoDetectionHoloLensUnity.exe:…
theo
  • 61
  • 1
  • 3