I see that in Roadmap for 4.3 but not in post “Preview of 4.3”… still coming, right?
It’s not worth a whole doc to explain that the feature is in with a simple ui choice in the settings.
It’s coming. You can count on it ![]()
Any benefits of using?
There are several. Probably the biggest one is that you get the same .NET API surface as all other Unity platforms, rather than the .NET Core 5 which lacks a lot of types that people usually use on other platforms.
WOW!!! that is extremely awesome news
Just spotted in the 5.3b2. Added IL2CPP support for Windows universal
Yup! There are separate installer choices for both (.NET and IL2CPP) scripting backends. Check Unity manual for detailed documentation on IL2CPP scripting backend.
However, there is a bug that we found at the last moment (after the build was out) which causes the installers to overwrite each other and makes all builds fail if IL2CPP installer is installed. There is a workaround:
Install one scripting backend, go to \Editor\Data\PlaybackEngines and copy MetroSupport to a backup location. Then, install the second scripting backend and finally copy back the MetroSupport folder from backup location.
I’m doing something wrong,
install IL2CPP,
then backup MetroSupport,
install .net,
and copy and replace (or copy and skip) IL2CPP MetroSupport over .net MetroSupport
empty project, default scene, unity running as admin
build target Universal 10 D3D
What’s not working?
sorry, Universal 10 IL2CPP build fails
building again now to get the exception
Exception: Failed to build Visual Studio project using arguments ‘C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe “C:\Users\O\Documents!Unity\5.3.x!Builds\Windows Store\TESTING\TESTING.sln” /nologo /maxcpucount /p:Configuration=Release /p:Platform=x86 /p:SolutionDir=“C:\Users\O\Documents\!Unity\5.3.x\!Builds\Windows Store\TESTING\” /t:Build /clp:Verbosity=minimal’.
Output: Il2CppAttributes.cpp
Il2CppOutputProject\IL2CPP\libil2cpp\object-internals.h(56): warning C4200: nonstandard extension used: zero-sized array in struct/union
Il2CppOutputProject\IL2CPP\libil2cpp\object-internals.h(56): note: Cannot generate copy-ctor or copy-assignment operator when UDT contains a zero-sized array
Il2CppOutputProject\il2cppOutput\GenericMethods0.cpp(3372): warning C4018: ‘>=’: signed/unsigned mismatch
etc…
Can you post the full log? Looks like you got to building C++ code part. That’s good - that’s the last piece.
Also, could you try building to a folder, opening up VS solution and try running from there instead of hitting Build and Run in Unity?
heres whats in red in visual studio
using namespace UnityPlayer;
m_AppCallbacks = ref new AppCallbacks();
private:
UnityPlayer::AppCallbacks^ m_AppCallbacks;
sorry i don’t know c++ so this looks very confusing
i’m guessing fixing the 1st line error: name must be a namespace name will fix things ?
forgot to mention it built to visual studio with no errors,
outside of the c++ errors, is
the compile command,
and Payload file ‘…\SymbolMap’ does not exist.
Can you try running it from visual studio by pressing F5, and it errors out, can you paste the output log (all of it)?
i don’t know how too,
theres only 5 errors, the rest warnings 12296
Severity Code Description Project File Line
Error MSB3073 The command ““C:\Users\O\Documents!Unity\5.3.x!Builds\Windows Store\TESTING\Il2CppOutputProject\IL2CPP\build\il2cpp.exe” --compile-cpp -architecture=x64 -configuration=Debug -platform=winrt -outputpath=“C:\Users\O\Documents!Unity\5.3.x!Builds\Windows Store\TESTING\build\bin\x64\Debug\UnityPlayer.dll” -cachedirectory=“C:\Users\O\Documents!Unity\5.3.x!Builds\Windows Store\TESTING\build\obj\il2cppOutputProject\x64\Debug\” -generatedcppdir=“C:\Users\O\Documents!Unity\5.3.x!Builds\Windows Store\TESTING\Il2CppOutputProject\il2cppOutput” -define=WINDOWS_UWP -define=UNITY_UWP -define=UNITY_WSA_10_0 -define=UNITY_WSA -define=UNITY_WINRT --additional-libraries=“C:\Users\O\Documents!Unity\5.3.x!Builds\Windows Store\TESTING\Players\UAP\x64\Debug\UnityPlayer.lib,d3d11.lib,d3d12.lib,dxguid.lib,mfuuid.lib,msxml6.lib,vccorlib.lib” -verbose” exited with code -532462766. Il2CppOutputProject C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets 37
Severity Code Description Project File Line
Error APPX0702 Payload file ‘C:\Users\O\Documents!Unity\5.3.x!Builds\Windows Store\TESTING\build\bin\x64\Debug\SymbolMap’ does not exist. TESTING C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\AppxPackage\Microsoft.AppXPackage.Targets 1862
Severity Code Description Project File Line
Error (active) name must be a namespace name TESTING c:\Users\O\Documents!Unity\5.3.x!Builds\Windows Store\TESTING\TESTING\App.cpp 6
Severity Code Description Project File Line
Error (active) expected a type specifier TESTING c:\Users\O\Documents!Unity\5.3.x!Builds\Windows Store\TESTING\TESTING\App.cpp 14
Severity Code Description Project File Line
Error (active) name followed by ‘::’ must be a class or namespace name TESTING c:\Users\O\Documents!Unity\5.3.x!Builds\Windows Store\TESTING\TESTING\App.h 19
just copied each individually
appreciate the drawing ![]()
attached log
2334085–157695–output-il2cpp.zip (85.6 KB)
