docs.unity3d.com
    Show / Hide Table of Contents

    Interface IProvidesMeshes

    Defines the API for a Mesh Provider

    Namespace: Unity.MARS.Providers
    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>
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023