docs.unity3d.com
    目次を表示する/隠す

    Interface IProvidesMeshes

    Defines the API for a Mesh Provider

    Inherited Members
    IFunctionalityProvider.LoadProvider()
    IFunctionalityProvider.ConnectSubscriber(Object)
    IFunctionalityProvider.UnloadProvider()
    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>
    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)