Search Unity

Question Trackables not working when change scene

Discussion in 'AR' started by afurioso, Sep 27, 2022.

  1. afurioso

    afurioso

    Joined:
    Jan 12, 2022
    Posts:
    88
    Hi guys,

    I'm working with AR foundation and I notice that when I enter for the first time in the 1st scene the AR plane manager works appropriately, but if I change to the 2nd scene and go back to the 1st scene, the plane manager doesn't work and the trackables aren't registered.

    Does anyone know how to solve this problem?
     
  2. andyb-unity

    andyb-unity

    Unity Technologies

    Joined:
    Feb 10, 2022
    Posts:
    1,062
  3. afurioso

    afurioso

    Joined:
    Jan 12, 2022
    Posts:
    88

    If you are referring to the SceneUtility script it doesn't seem to work. neither in the Samples
     
  4. andyb-unity

    andyb-unity

    Unity Technologies

    Joined:
    Feb 10, 2022
    Posts:
    1,062
    Have you built the Samples app to your iOS, Android, or OpenXR device? If you experience errors changing scenes on device please report an issue on the repo.
     
  5. afurioso

    afurioso

    Joined:
    Jan 12, 2022
    Posts:
    88
    Yeah, it works in the build for android but not in the new AR Environment. I'll try it on my app. And just to know, are some references in the Menu scene to the GameObject where is attached the Scene script?