Search Unity

Resolved Strange ARMeshManager must be a child of ARSessionOrigin Warning

Discussion in 'AR' started by wsc34, Dec 26, 2020.

  1. wsc34

    wsc34

    Joined:
    Dec 26, 2020
    Posts:
    18
    I tried to add an ARMeshManager to an ARSessionOrigin via the AddComponent in the inspector panel but it does not seem to work. A warning saying that ARMeshManager must be a child of ARSessionOrigin pops up. What is likely to cause such a problem? capture.PNG
     
  2. TreyK-47

    TreyK-47

    Unity Technologies

    Joined:
    Oct 22, 2019
    Posts:
    1,820
    Howdy @wsc34. The position and scale of the MeshManager affects the meshing functionality on some platforms (e.g. both Hololens and Magic Leap). ARKit does not have this requirement, but the MeshManager is a generic component that can operate on any of these platforms.
     
  3. wsc34

    wsc34

    Joined:
    Dec 26, 2020
    Posts:
    18
    Thank you for your answer, it seems to me that the ARMeshManager must be the component of a child of an ARSessionOrigin instead, so adding ARMeshManager to a child ARCamera is currently working, but I am still testing how to use it. The problem is resolved.