Search Unity

How to use Navmesh at ARFoundation scene?

Discussion in 'AR' started by PeterChen1997, Jan 6, 2020.

  1. PeterChen1997

    PeterChen1997

    Joined:
    Dec 23, 2019
    Posts:
    4
    Could I use Navmesh at AR scene?
    I am trying to use Navmesh at gameobject as tracked images prefab.
    It works on the editor.
    But when I build for android, My character couldn't find the floor.
    Should I use runtime nav mesh baking to slove this kind of problem?
    If not , Anyone could give me any pointers?
     
  2. mistergreen2016

    mistergreen2016

    Joined:
    Dec 4, 2016
    Posts:
    226
    I'd imagine you can ONLY use runtime navmesh baking since the floor isn't defined until you scan for the ARPlane. The visualizer prefab for the ARPlaneManager has a MeshCollider you can use to bake a navmesh.
     
    Last edited: Jan 8, 2020
    PeterChen1997 likes this.