docs.unity3d.com
    Show / Hide Table of Contents

    Interface IProvidesPlaneFinding

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

    Namespace: Unity.MARS.Providers
    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>
    Back to top
    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