docs.unity3d.com
    显示 / 隐藏目录

    Interface IProvidesPlaneFinding

    Defines the API for a Plane Finding Provider This functionality provider is responsible for plane finding

    Inherited Members
    IFunctionalityProvider.LoadProvider()
    IFunctionalityProvider.ConnectSubscriber(Object)
    IFunctionalityProvider.UnloadProvider()
    Namespace: Unity.MARS
    Syntax
    public interface IProvidesPlaneFinding : IFunctionalityProvider

    Methods

    GetPlanes(List<MRPlane>)

    Get the currently tracked planes

    Declaration
    void GetPlanes(List<MRPlane> planes)
    Parameters
    Type Name Description
    List<MRPlane> planes

    A list of MRPlane objects to which the currently tracked planes will be added

    StartDetectingPlanes()

    Start detecting planes. Plane detection is enabled on initialization, so this is only necessary after calling StopDetecting.

    Declaration
    void StartDetectingPlanes()

    StopDetectingPlanes()

    Stop detecting planes. This will happen automatically on destroying the session. It is only necessary to call this method to pause plane detection while maintaining camera tracking

    Declaration
    void StopDetectingPlanes()

    Events

    planeAdded

    Called when a plane become tracked for the first time

    Declaration
    event Action<MRPlane> planeAdded
    Event Type
    Type Description
    Action<MRPlane>

    planeRemoved

    Called when a tracked plane is removed (Lost)

    Declaration
    event Action<MRPlane> planeRemoved
    Event Type
    Type Description
    Action<MRPlane>

    planeUpdated

    Called when a tracked plane has updated data

    Declaration
    event Action<MRPlane> planeUpdated
    Event Type
    Type Description
    Action<MRPlane>
    返回到顶部
    Copyright © 2023 Unity Technologies — 商标和使用条款
    • 法律条款
    • 隐私政策
    • Cookie
    • 不要出售或分享我的个人信息
    • Your Privacy Choices (Cookie Settings)