docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IProvidesMeshes

    Defines the API for a Mesh Provider

    Inherited Members
    IFunctionalityProvider.LoadProvider()
    IFunctionalityProvider.ConnectSubscriber(object)
    IFunctionalityProvider.UnloadProvider()
    Namespace: Unity.MARS.Providers
    Assembly: Unity.MARS.Interfaces.dll
    Syntax
    public interface IProvidesMeshes : IFunctionalityProvider

    Methods

    GetMeshes(List<MRMesh>)

    Get the currently tracked meshes

    Declaration
    void GetMeshes(List<MRMesh> meshes)
    Parameters
    Type Name Description
    List<MRMesh> meshes

    A list of MRMesh objects to which the currently tracked meshes will be added

    StartDetectingMeshes()

    Start detecting meshes. Mesh detection is enabled on initialization, so this is only necessary after calling StopDetectingMeshes.

    Declaration
    void StartDetectingMeshes()

    StopDetectingMeshes()

    Stop detecting meshes

    Declaration
    void StopDetectingMeshes()

    Events

    MeshAdded

    Called when a mesh becomes tracked for the first time

    Declaration
    event Action<MRMesh> MeshAdded
    Event Type
    Type Description
    Action<MRMesh>

    MeshRemoved

    Called when a tracked mesh is removed

    Declaration
    event Action<MarsTrackableId> MeshRemoved
    Event Type
    Type Description
    Action<MarsTrackableId>

    MeshUpdated

    Called when a tracked mesh has updated data

    Declaration
    event Action<MRMesh> MeshUpdated
    Event Type
    Type Description
    Action<MRMesh>
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)