Search Unity

Question ARFOUNDATION Normal meshes not return a correct mesh??

Discussion in 'AR' started by Ikaro88, May 22, 2022.

  1. Ikaro88

    Ikaro88

    Joined:
    Jun 6, 2016
    Posts:
    300
    Hi I have to save the mesh generate by the demo scene "NormalMeshes"
    I created the code to keep al mesh data, and assign it to a new object.
    It works correctly with all meshes but if I try to get from the prefab:
    RenderedMeshPrefab
    Like this:
    GameObject.GetComponent<MeshFilter>().sharedMesh

    the mesh is not saved correctly
    there is something I have to do to get the mesh generated?