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
2 answers

IL2CPP interfering with gravity (RigidBody)

I have created an app in unity to load asset bundles. When I load asset bundles, game objects with rigid body components and isGravity is off are working fine. But when I enable isGravity, gameo bjects start to pass through each others. This problem…
0
votes
0 answers

Unity Android. Failed to build with il2cpp. Mono works fine

I'm working on a game in Unity to release to the play store. Whenever I try to build the project, with mono as scripting backend works totally fine, but with il2cpp (to build in 64-bit) it gives some errors: 1: Exception: Failed running C:\Program…
Jonathan Fin
  • 26
  • 10
0
votes
0 answers

Debug Unity IL2CPP UWP Build for HoloLens

So there are a lot of guides for this topic, like: SO-Post Microsoft-Doc Dev-Blog And I set up my project like described in those guides. Project Settings>Player: Scripting Backend is IL2CPP Api Compatibility Level is .NET 4.x The…
Perazim
  • 1,501
  • 3
  • 19
  • 42
0
votes
2 answers

I'm getting IL2CPP build error for some reason

For some reason, I'm getting build errors. I was be able to build my project clearly with mono. I'm trying to build the project with IL2CPP now and getting some errors. I tried: Changing Windows language to English. In fact, I reinstalled Windows…
0
votes
0 answers

Use Unity's il2cpp.exe alone

Can I use Unity's il2cpp.exe alone to convert any .Net Framework Compiled IL binary? for example, Windows Forms? Sorry if this is a weird question, Recently I found the binary compiled with IL bytecode could be restored almost the same as the…
0
votes
1 answer

How to get the type of a il2cpp class for GameObject.FindObjectsOfTypeAll() UnityEngine function?

I am trying to use GameObject.FindObjectsOfTypeAll() in UnityEngine and it is asking for an Il2Cpp class, and if i do GameObject.FindObjectsOfTypeAll(typeof(Image)) i get the error cannot convert from "System.Type" to "Il2cppSystem.Type" I also…
CatShark
  • 1
  • 3
0
votes
1 answer

Unity Android Il2CPP Build Not playing animation after loading Asset bundle

I run assetbundle in Mono Build animation is working properly(it's working fine in editor also) when I create IL2CPP build then load assetbundle animation is not woking. Unity version : 2020.3.3f1 Is anyone face this issue before if so then please…
Mayur Asodariya
  • 103
  • 2
  • 10
0
votes
1 answer

Exception: il2cpp.exe did not run properly

I can't build Android. Exception: C:\Program Files\Unity\Editor\Data\il2cpp/build/deploy/net471/il2cpp.exe did not run properly! Exception: C:\Program Files\Unity\Editor\Data\il2cpp/build/deploy/net471/il2cpp.exe did not run properly! Failed…
efkansenol
  • 5
  • 1
  • 3
0
votes
1 answer

Unity throwing IL2CPP build error at run time when building for Android? 2018.4.5f1

I'm trying to build a project for deployment to the play store, but getting the dreaded IL2CPP errors at build-time. Below are the errors, both relate to the same file il2cppcore.dll. Any help is appreciated. Unity version 2018.4.5f1 I…
Dmitri Bilyk
  • 31
  • 1
  • 3
0
votes
1 answer

Firebase 6.16.1 Specified cast is not valid Unity

I have some problems with Firebase in Unity. I'm using Unity 2020.2.0b5.3233 and Firebase App and Database 6.16.1. I didn't have this error before, but now it appears! I left the REST API because it doesn't have a database change detection feature!…
0
votes
1 answer

Not able to attach native C++ Debugger to Unity App already running on HoloLens2

I have an IL2CPP Unity App which uses custom-made native DLLs built for HoloLens 2. Debugging the managed C# code of the running App works just fine using Visual Studio 2019 with Tools for Unity Plug-In via Debug->Attach Unity Debugger. It…
PhilJay
  • 515
  • 5
  • 10
0
votes
1 answer

Google.Protobuf.Reflection is not working with il2cpp scripting in Unity

I was creating an android game in unity3d using amazon gamelift. I am using realtime server client sdk. When I run the app it creating a game session in my gamelift fleet but is not able to send messages when I am using IL2CPP sever scripting. It…
Manas Muda
  • 23
  • 4
0
votes
0 answers

App crashes after upgrading to unity 2019.3.7f when using lower android version

I've created my app in unity 2019.2.5f and my .aab build works at my samsung SM-J710GN and lower android versions. The only problem in 2019.2.5f is it has a bug that S-pen does not work. So I upgraded to 2019.3.7f. The problem now is when I test my…
unice
  • 2,655
  • 5
  • 43
  • 78
0
votes
1 answer

How to get Fiddler or Charles to capture traffic from Unity 2018 IL2CPP apps

I have built apps with Unity 5 and with Unity 2017, and am able to use Fiddler or Charles to capture network traffic successfully. However, When I build a Unity 2018 app using IL2CPP (the other apps were built with .Net), the app works…
Greg Thatcher
  • 1,303
  • 20
  • 29
0
votes
1 answer

IL2CPP compiled UWP app using Windows System DLLs on ARM

I am trying to use the iphlpapi.dll within a Unity3d UWP App on the Hololens 2. When I create a standalone UWP C# App and run it on the HL, it works fine and I can use the dll. When I compile the Unity3d project, it doesn't work. The dll is loaded…
pma07pg
  • 516
  • 1
  • 4
  • 16