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. Join us on Thursday, June 8, for a Q&A with Unity's Content Pipeline group here on the forum, and on the Unity Discord, and discuss topics around Content Build, Import Workflows, Asset Database, and Addressables!
    Dismiss Notice

Official AR Foundation v5.0

Discussion in 'AR' started by tropicdragon_unity, Aug 24, 2022.

  1. andyb-unity

    andyb-unity

    Unity Technologies

    Joined:
    Feb 10, 2022
    Posts:
    525
    Hi @Dan4x8,

    I believe the issue observed by @Kasperknop above is the same as this one: https://github.com/Unity-Technologies/arfoundation-samples/issues/1063

    We will post updates to that GitHub issue link as our investigation progresses. We believe this issue might be caused by the new Input System although our investigation is ongoing. For now the only way to achieve frame-perfect sync between camera and tracking data is to remain on AR Foundation 4.2.
     
  2. Flavelius

    Flavelius

    Joined:
    Jul 8, 2012
    Posts:
    909
    When using the simulator, regular objects aswell as tracked planes in the scene don't show up in the game view (only the simulation environment and overlay ui in my case). Only when i manually set the SimulatedCamera's culling mask in the editor to their layer (it's set to none by default). The XR Origin camera's culling mask seems to be unused as long as the Ar camera background component is active.
    Is this expected or does it require another setup step that i missed?
    ubuntu 22.10, Unity 2021.3.20f1, Standard pipeline, Ar foundation 5.1.0-pre.3

    Edit: it's the ARCameraBackground component, that's faulty. It just renders the simulated camera output on top.
     
    Last edited: Apr 7, 2023
  3. unity_qFF5lyej1cOtRg

    unity_qFF5lyej1cOtRg

    Joined:
    Oct 11, 2020
    Posts:
    1
    Hi! I'm working with an AR project on Unity 23.1 and as soon as I check google ARcore in my project settings I get this:

    Library\PackageCache\com.unity.xr.arfoundation@5.0.5\Runtime\InternalUtils\FindObjectsUtility.cs(66,27): error CS0117: 'Object' does not contain a definition for 'FindObjectsByType'

    Library\PackageCache\com.unity.xr.arfoundation@5.0.5\Runtime\InternalUtils\FindObjectsUtility.cs(66,48): error CS0103: The name 'FindObjectsSortMode' does not exist in the current context

    Has anyone ever seen this?
     
  4. CiaranWills

    CiaranWills

    Unity Technologies

    Joined:
    Apr 24, 2020
    Posts:
    165
  5. andyb-unity

    andyb-unity

    Unity Technologies

    Joined:
    Feb 10, 2022
    Posts:
    525
    @unity_qFF5lyej1cOtRg 2023.1 is currently in beta. You are likely running on an older version of 2023.1 before these new API members were added (beta 4 if I remember correctly).

    The solution here is to update to the latest patch of 2023.1, or downgrade to an older version of AR Foundation.
     
  6. UnitDan

    UnitDan

    Joined:
    Feb 4, 2019
    Posts:
    9
    I have the same issue. Thanks Flavelius, the culling mask does the trick for now. Using Unity 2022.2.10, URP 14.0.6, ArFoundation 5.0.5.
     
    Last edited: Apr 24, 2023
  7. andyb-unity

    andyb-unity

    Unity Technologies

    Joined:
    Feb 10, 2022
    Posts:
    525
    makaka-org likes this.