Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Scene changing causes Unity MARS Camera to fail for my project

Discussion in 'Unity MARS' started by Prahelika07, Aug 7, 2023.

  1. Prahelika07

    Prahelika07

    Joined:
    Feb 3, 2023
    Posts:
    36
    I have some issues occurring in my project and a little guide will be helpful. In my project there are three Scenes, say 1,2,3, in which Scene 1 consist Simple Mian Camera and Scene 2 and 3 consist MARS Camera. I use Scene 1 as Menu bar for scene changing with two buttons that will lead to either scene 2 or 3 and from that scene a back will bring back to scene 1. I am also using XR Origin for AR Plane Detection and Point Cloud Detection and AR Session.

    Now the issue is that, when I go from Scene 1 to scene 2, the Mars Camera works properly but when I go back from Scene 2 to Scene 1 and then try to go to scene 3 or scene 2, the camera shows error. Same thing happens when I go from Scene 1 to scene 3 to again scene 1 and then to either scene 2 or 3.

    In the issue, Scene 2, the Plane and Point Cloud Detection gets stopped and Image Marker does not work either and Scene 3, the only UI gets displayed and the background becomes black.

    I have searched about it but couldn't able to find any answer that would solve my issues or at least give me some ideas.

    It will be helpful if you could give me some kind setting ideas, codes, resource links or anything that will solve this issue.
     
  2. VRDave_Unity

    VRDave_Unity

    Unity Technologies

    Joined:
    Nov 19, 2021
    Posts:
    258
    Hello again @Prahelika07,
    Can you file a bug report for this as well using the Help > Report a bug... menu option in the Unity Editor. Please include a reproducible slice of your project so we can test it out and debug on our end. Thank you!
     
  3. Prahelika07

    Prahelika07

    Joined:
    Feb 3, 2023
    Posts:
    36
    Can you tell me what kind of part are you expecting as I have written C# script in which methods are used in normal button for scene change.