docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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.Providers
    Assembly: Unity.MARS.Interfaces.dll
    Syntax
    [MovedFrom("Unity.MARS")]
    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>
    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)