Search Unity

What has replaced SurfaceObserver?

Discussion in 'AR/VR (XR) Discussion' started by Nyanpas, Jun 10, 2020.

  1. Nyanpas

    Nyanpas

    Joined:
    Dec 29, 2016
    Posts:
    406
    I am on Unity 2019.3 and can't find out what to use instead of SurfaceObserver because it is obsolete, as I can't find any documentation about this online and I have spent the last hour trying to navigate the XR-documentation of Unity's own guides and API.

    Please help. I know it is a matter of one line of code. All I need is to be able to show triangles that represent the depth-sensed environments around me.
     
  2. tdmowrer

    tdmowrer

    Joined:
    Apr 21, 2017
    Posts:
    605
    If you are using ARFoundation, you can use the ARMeshManager to get the meshes generated by the HoloLens. There are some samples demonstrating the use of the mesh manager described here.
     
  3. Nyanpas

    Nyanpas

    Joined:
    Dec 29, 2016
    Posts:
    406
    I am planning on using this for a HoloLens 2, but it seems we will stay on 2019.3 for now.