Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question Quest 2 App Crashes on Startup(Il2CPP) but not Mono with DOTS

Discussion in 'VR' started by maxostrach, Dec 27, 2021.

  1. maxostrach

    maxostrach

    Joined:
    Apr 8, 2020
    Posts:
    9
    I am working on some VR stuff trying to build for quest 2, but having inconsistent results building using IL2CPP. I am using DOTS with Hybrid Rendererer V2 to simulate snowflakes falling with URP.

    Note 1: I can build using il2cpp before I set up the DOTS part of the scene. The Mono build does work, although the performance seems inferior.

    I've used 2020.3 as well as 2021.2 with different version of URP, but neither will play on quest 2 after being successfully built with IL2CPP. They do work with Mono, however I need it to build this game eventually with IL2CPP

    Is there something I'm missing? I can't find any documentation on this, so any help or ideas would be great.

    Note 2: Even after removing all entities from the scene and removing the hybrid renderer, the identical scene that works before DOTS packages no longer works after DOTS packages.

    Thanks
     
  2. maxostrach

    maxostrach

    Joined:
    Apr 8, 2020
    Posts:
    9
    I've narrowed down the issue to a conflict between URP and Hybrid Renderer V2. I am not sure why it only works with Mono, but I will try to crosspost on the oculus forums
     
  3. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,402
    Maybe you need to build AOT files for an asset?
    I know odin inspector and bolt scripting need that