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. We are updating our Terms of Service for all Unity subscription plans, effective October 13, 2022, to create a more streamlined, user-friendly set of terms. Please review them here: unity.com/legal/terms-of-service.
    Dismiss Notice
  3. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice
  4. Join us on Thursday, September 29, for a day with Unity's SRP teams here on the forum or on Reddit, and discuss topics around URP, HDRP, and the Scriptable Render Pipeline in general.
    Dismiss Notice

ARMeshManager in ARFoundation

Discussion in 'AR' started by kexar66, Aug 4, 2019.

  1. kexar66

    kexar66

    Joined:
    Feb 27, 2013
    Posts:
    41
    I found a new feature in the newest version of ARFoundation, called ARMeshManager. What is it for exactly?

    Thanks.
     
  2. vetro22

    vetro22

    Joined:
    Aug 14, 2019
    Posts:
    8
    +1

    I would like to know this too...
     
  3. orgelvarg

    orgelvarg

    Joined:
    May 27, 2019
    Posts:
    15
    According to the documentation it's a manager for the plane meshes generated by the AR device. It contains a bunch of properties related to the AR mesh, an event called meshesChanged and a method called DestroyAllMeshes().
     
  4. vetro22

    vetro22

    Joined:
    Aug 14, 2019
    Posts:
    8
    That's correct, but unfortunately it's use is not as intuitive as the documentation would suggest. (for me at least)
    In my case, the ARMeshManager module disables itself, because it couldn't find the XRMeshSubsystemDesctiptor with the SubsystemManager.
    It's totally possible, that I made a mistake, or didn't use the feature correctly, but I didn't find a proper guide or example for it yet.
    I've made a therad about this issue here: https://forum.unity.com/threads/problems-with-armeshmanager.734465/
     
  5. GeorgeAlexandru

    GeorgeAlexandru

    Joined:
    May 29, 2017
    Posts:
    4
    Well depending on which platform you use it will work or otherwise return null.

    If you are trying to use it with ARKit or ARCore, like I tried it will not work. Answer here.
     
unityunity