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
22
votes
1 answer

Accessing Windows 10 functions from Unity IL2CPP project via a class library

I have been trying to create a UWP class library that gives me access to Windows 10s native features such as Windows.Security.Authentication.OnlineId. I would like to get a username and ID from the device for use in a Unity UWP IL2CPP project. I am…
SammyG
  • 274
  • 1
  • 10
8
votes
1 answer

UnusedBytecodeStripper2.exe did not run properly

I am trying make my iOS game to build for iOS. I set the scripting backend to IL2CPP (armv7 and arm64) and i am getting the following errors.. I use MobileMoveScript Plugin 2.1.3 and Mobile Social Plugin 6.6. I don't think there is any problem with…
Abel Pandian
  • 93
  • 1
  • 6
7
votes
3 answers

Unity Build - Exception: il2cpp.exe did not run properly

Using Unity 2017.4.34f1 (LTS) with IL2CPP with NDK r13b, I try to export my Unity Project to Android Project (Build Process). Note: I'm using IL2CPP because Google PlayStore want both 32 & 64bit, so i cant use Mono anymore as scripting…
questionasker
  • 2,536
  • 12
  • 55
  • 119
7
votes
1 answer

IL2CPP vs Mono2x and Android deployment

IL2CPP is a Unity-developed scripting back-end which you can use as an alternative to Mono when building projects for some platforms.Note - IL2CPP is only available when building for the following platforms: Android AppleTV, iOS*, Nintendo 3DS,…
Muhammad Faizan Khan
  • 10,013
  • 18
  • 97
  • 186
5
votes
2 answers

Unity Android Build Works in Mono but Fails in IL2CPP due to Undefined References, Missing Library

I'm attempting to update our ARToolkit5 based Unity Android app that has been in the Google Play store for years. ARToolkit5 is no longer supported, but we still rely on its libraries, built about 4 years ago. My Unity version is 2020.1.11f1. I need…
gravy
  • 181
  • 2
  • 8
4
votes
0 answers

Error when trying to build a Unity project with il2cpp

When i try to build my project using mono everythig works fine but when i use il2cpp i get this error. Building Library\Bee\artifacts\WinPlayerBuildProgram\ManagedStripped failed with…
Bialy
  • 41
  • 1
4
votes
1 answer

Invoke generic method via reflection in C# IL2CPP on iOS

This question is specifically about Unity3d IL2CPP and iOS. Calling a generic method using reflection class SourceValue { public T value; } class TargetValue { public T value; } static TargetValue GenericMethod (SourceValue source)…
Matti Jokipii
  • 561
  • 1
  • 6
  • 20
3
votes
1 answer

Cannot find file libil2cpp.dbg.so to copy - :unityLibrary:BuildIl2CppTask

I'm building a Unity project for Android on a Windows VM and, when I run Azure DevOps pipelines, I get the following error message: * What went wrong: Execution failed for task ':unityLibrary:BuildIl2CppTask'. > Warning: Could not find file [Path…
Muerte
  • 83
  • 9
3
votes
1 answer

Why are all the methods in Assembly-CSharp.dll empty?

I have recently decompiled the GameAssembly.dll from Among Us using Il2CppDumper-v6.7.6 My problem is that while i have the file Assembly-CSharp.dll open with dnSpy, all of the methods/functions are empty, as shown below, Does anyone know how i…
ellis
  • 51
  • 1
3
votes
2 answers

On a HoloLens 1, when creating TcpClient object with default constructor "ArgumentException: Value does not fall within the expected range" is thrown

I had an application working fine until about 2 days ago where a HoloLens 1 connected via TCP to another PC on a local network. Recently, every call to TcpClient() default constructor throws the error above. No values are being passed into it (since…
3
votes
3 answers

Problem with AOT (ahead of time) in a generic method after built to UWP and Il2CPP

I have a generic method for trying to get a generic value from a dictionary via key using my own TryGetValue like (of course cropped a lot to the essential) public class BaseExample { public virtual bool TryGetValue(string key, out T value) …
derHugo
  • 83,094
  • 9
  • 75
  • 115
3
votes
2 answers

Exporting to Webgl is very slow

It always stuck at IL2CPP for more than 10 minutes. why and how to speed up the process? I have tried the examples found such as exporting to the same folder.
learning
  • 59
  • 1
  • 8
3
votes
2 answers

Build - il2cpp did not run properly

I'm using unity 2019.2.0f1 with the integrating jdk-sdk and ndk recommended by unity to build a game for android platform first i build successfully my project using Mono after that i tried to build using IL2CPP unfortunately i couldn't build my…
bechir
  • 31
  • 1
  • 1
  • 4
3
votes
1 answer

DLL conflict in Hololens with IL2CPP backend

I have been developing on the Hololens. The project is on .NET 4.x with IL2CPP with API compatibility 4.x. I'm using Unity 2018.3.6f. I need to add external DLL (IdentityClient.dll) Reference: IdentityModel NuGet Package This dll has dependencies on…
MaxThom
  • 1,165
  • 1
  • 13
  • 20
3
votes
0 answers

IOException : The port `\\.\COM3' does not exist

I am trying to Open a SerialPort in unity. It is working in editor and mono build. But when I build the game with iL2CPP scripting backend. It is throwing an exception with message The port \\.\COM3 does not exist. Is this something related to Unity…
djkpA
  • 1,224
  • 2
  • 27
  • 57
1
2 3
10 11