Since il2cpp is getting me a strange error, I tried .net compilation and I get System.TypeInitializationException at a line that says appCallbacks.SetBridge(_bridge)
Call Stack
[External Code]
Space Games Comics.exe!Space_Games_Comics.MainPage.MainPage() Line 44 C#
[External Code]
Space Games Comics.exe!Space_Games_Comics.App.InitializeUnity(string args) Line 120 C#
Space Games Comics.exe!Space_Games_Comics.App.OnLaunched(Windows.ApplicationModel.Activation.LaunchActivatedEventArgs args) Line 93 C#
Code
_bridge = new WinRTBridge.WinRTBridge();
appCallbacks.SetBridge(_bridge);
@Aurimas-Cernius
Thank you.
I built again without âunity c# projectâ or âdevelopment buildâ checked and could run the x64 build.
But I am facing two more problems, and this thread is one of them.
Hey, Iâm having the same issue, and unchecking the Unity c# projects option didnât resolve it,it just stopped me getting a breakpoint when the exception occurs, and additionally when Building the project in VS Community I get several warnings about dll not found including Unity.Networking and WinRTLegacy.
Setting the project to Use NetCore didnât help. Iâve read other forums that reccommend using the same versions of split dlls (ie a dll with the same name in the Plugins folder + Plugins/WSA, with settings to overwrite the base one when copmiling for WSA), aswell as other suggestions that 2 files might have the same name, and/or same namespace and/or called the same but ones a .cs and ones a .js file. Iâm not sure how to check for these duplicate names in my project without the error pointing me towards one specifically.
âUnassignedReferenceException: The variable meshFilter of TerrainEditorPreview has not been assigned.
You probably need to assign the meshFilter variable of the TerrainEditorPreview script in the inspector.
TerrainEditorPreview.UpdateTerrain () (at Assets/Scripts/Release/Terrain/TerrainEditorPreview.cs:77)
TerrainEditorPreview.Awake () (at Assets/Scripts/Release/Terrain/TerrainEditorPreview.cs:38)
UnityEditor.HostView:OnGUI()â
When rebuilding the solution it says
âWarning Failed to resolve all project references for âMyGameProjectâ. The package restore result for âMyGameProjectâ may be incomplete. 0â
I have also attached the output window when running in vs community 2015.
I have the latest version of unity, currently v5.3.1p3, I needed the additional patch 3 to sort an error when running the game to do with shaders.
I ran a blank project fine, so I donât think thereâs an issue with my sdk or anything installed, althought there was literally nothing in my blank project but the standard unity background, I am going to put my plugins over 1 by 1 now to see if one shows an issue.
I tried setting the IL2CPP scripting backend setting which is suggested in other similar Windows Store Unity error threads but it doesnât build in editor, Iâm not totally sure if this is a setting that should be used/tried or not.
Thanks for the quick response, I notice alot of people are having similar troubles so hopefully it can get sorted.
Do you want the output when building the solution, or the individual MyGameProject project? When ticking Build Unity c# projects in the editor build settings dialogue window, it creates 2 additional projects assembly-csharp and assembly-csharp-firstpass.
Hey, Here are the logs. I rebiult the solution but had ARM selected insteda of the suggested x86 from unity docs. So Iâll rebuild it in x86 now and post it.
Edit: added x86 rebuild log, thought I tihnk itâs identical.
No idea now. Can you try building to an empty directory without C# projects enabled. If it still fails the same way, then report a bug with this project attached, cause Iâll have to debug to figure out whatâs going wrong.
Hey, It still occured in the empty directory, I filed a bug report and itâs uploading now.
Thank you so much for your help on this, please let me know if thereâs any additional info you need, or if I need to let you know the bug report numbers or webpage etc when itâs finished uploading.
It doesnât happen on an empty project, I can run that fine in visual studio and it doesnât get the exception, so I believe itâs something in the project but I have no clue as to what specific file or set of files could be causing it.
When you said to put it into an empty directory, I using Unity to build the App to that new empty directory. Is that what you meant I should try to do, or did I misread that? Sorry if I did.