Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Discussion Is there a turotial for using XROrigin?

Discussion in 'AR' started by nosarious, Mar 13, 2023.

  1. nosarious

    nosarious

    Joined:
    May 14, 2014
    Posts:
    16
    I have been using this guide for setting up a basic AR system in Unity, but it is out of date: https://github.com/fariazz/ARFoundationPlacementIndicator
    (also an error I resolved with a fork)

    Everything is based off the old AR Session Origin and AR Origin and now we are to use XR origin, especially if using XR Interaction manager.

    However, when I try to use XR Origin I end up with a black screen and 'hints' that I am to set up AR Camera and AR Camera Background scripts: https://docs.unity3d.com/Packages/c...2.0/manual/xr-origin.html#how-to-setup-for-ar

    Neither of which are really explained in a tutorial. I don't know where the AR Camera Background even is.

    Is there a clear non-video tutorial for setting XR ORigin up? I am trying to build an AR app on an iphone and android and am spending a large amount of time trying to resolve issues with revisions...
     
  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,971
    Do you use URP?
    If so, you need to add the URP render feature to the urp renderer asset. Then set the camera color to black
    Also update to the latest LTS bugfix if possible
     
  3. CindyG

    CindyG

    Joined:
    Mar 29, 2019
    Posts:
    9
  4. andyb-unity

    andyb-unity

    Unity Technologies

    Joined:
    Feb 10, 2022
    Posts:
    1,025
    KyryloKuzyk likes this.