Search Unity

Question Error Running unity AR foundation and unity mars in different scenes

Discussion in 'Unity MARS' started by harishcloudbloom, Dec 15, 2022.

  1. harishcloudbloom

    harishcloudbloom

    Joined:
    Jun 17, 2021
    Posts:
    4
    I have an existing app with one scene runs ARF for image tracking and plane detection. recently added another scene with unity mars and using it for facetracking. When i switch from scene1(ARF scene) to scene2(MARS scene) it works fine.. However switch from Scene 2 to Scene 1 is breaking. it just shows black screen.

    from scene 1 --> scene 2
    Code (CSharp):
    1.  if(message.key == "SWITCH_MARS") {
    2.                 SceneManager.LoadScene("Mars", LoadSceneMode.Single);
    3. }
    from scene 2 --> scene 1

    if(message.key == "SWITCH_AR")
    {
    SceneManager.LoadScene("UXManagerScene", LoadSceneMode.Single);
    }



    Also, I am seeing this error on xcode

    [B]NotSupportedException: Update requires a configuration.[/B]

    [B] at UnityEngine.XR.ARKit.ARKitSessionSubsystem+ARKitProvider.Update (UnityEngine.XR.ARSubsystems.XRSessionUpdateParams updateParams) [0x00000] in <00000000000000000000000000000000>:0 [/B]

    [B] at UnityEngine.XR.ARSubsystems.XRSessionSubsystem.Update (UnityEngine.XR.ARSubsystems.XRSessionUpdateParams updateParams) [0x00000] in <00000000000000000000000000000000>:0 [/B]

    [B] at UnityEngine.XR.ARFoundation.ARSession.Update () [0x00000] in <00000000000000000000000000000000>:0 [/B]


    Please help.
     
    Last edited: Dec 18, 2022
  2. harishcloudbloom

    harishcloudbloom

    Joined:
    Jun 17, 2021
    Posts:
    4
    Unity version: 2020.3.35f1
    ARFoundation : 4.1.10
    Unity Mars: 1.5.0
     
  3. harishcloudbloom

    harishcloudbloom

    Joined:
    Jun 17, 2021
    Posts:
    4
    Xcode error after i switch to ARF Scene from Mars Scene
    Code (CSharp):
    1.  
    2. Loading plugin UnityARKit for subsystem ARKit-Input...
    3. [Subsystems] UnityARKit successfully registered Provider for ARKit-Input
    4. [Subsystems] Loading plugin UnityARKit for subsystem ARKit-Meshing...
    5. [Subsystems] Failed to initialize subsystem ARKit-Meshing [error: 1]
    6. NotSupportedException: Update requires a configuration.
    7.   at UnityEngine.XR.ARKit.ARKitSessionSubsystem+ARKitProvider.Update (UnityEngine.XR.ARSubsystems.XRSessionUpdateParams updateParams) [0x00000] in <00000000000000000000000000000000>:0
    8.   at UnityEngine.XR.ARSubsystems.XRSessionSubsystem.Update (UnityEngine.XR.ARSubsystems.XRSessionUpdateParams updateParams) [0x00000] in <00000000000000000000000000000000>:0
    9.   at UnityEngine.XR.ARFoundation.ARSession.Update () [0x00000] in <00000000000000000000000000000000>:0
     
    Last edited: Dec 18, 2022
  4. gfxguru

    gfxguru

    Joined:
    Jun 5, 2010
    Posts:
    107
    hi,
    i was also having this same issue. Did you find any solution for this?
     
  5. harishcloudbloom

    harishcloudbloom

    Joined:
    Jun 17, 2021
    Posts:
    4