Search Unity

  1. Unity wants to learn about your experiences working on a Unity project today. We'd like to hear from you via this survey.
    Dismiss Notice
  2. Read here for Unity's latest plans on OpenXR.
    Dismiss Notice
  3. All Pro and Enterprise subscribers: find helpful & inspiring creative, tech, and business know-how in the new Unity Success Hub. Sign in to stay up to date.
    Dismiss Notice
  4. Dismiss Notice

Bug Mars + IL2CPP

Discussion in 'Unity MARS' started by HEROTECH70, Jun 10, 2020.

  1. HEROTECH70

    HEROTECH70

    Joined:
    May 24, 2017
    Posts:
    54
    I get this error when I build the base mars project and starting any template scene with IL2CPP.
    Everything works fine in mono since I can disable Managed Stripping Level.

    2020/06/10 11:12:52.943 25521 25549 Error Unity NullReferenceException: Object reference not set to an instance of an object.
    2020/06/10 11:12:52.943 25521 25549 Error Unity at Unity.XRTools.ModuleLoader.ModuleLoaderCore.LoadModulesWithTypes (System.Collections.Generic.List`1[T] moduleTypes) [0x00000] in <00000000000000000000000000000000>:0
    2020/06/10 11:12:52.943 25521 25549 Error Unity at Unity.MARS.MARSSession.Awake () [0x00000] in <00000000000000000000000000000000>:0
    2020/06/10 11:12:52.943 25521 25549 Error Unity Unity.XRTools.ModuleLoader.ModuleLoaderCore:LoadModulesWithTypes(List`1)
    2020/06/10 11:12:52.943 25521 25549 Error Unity Unity.MARS.MARSSession:Awake()
     
  2. leweyg_unity

    leweyg_unity

    Unity Technologies

    Joined:
    Jan 29, 2020
    Posts:
    38
    We are working on releasing an update, local fix should be adding the [UnityEngine.Scripting.Preserve] attribute to the "
    "ConnectDependency" method of "PackageSource/com.unity.xrtools.module-loader/Interfaces/Modules/IModuleDependency.cs" (that way, as you pointed out, the Managed Stripping knowns not to turn this system off).
     
    jmunozarUTech likes this.
unityunity