docs.unity3d.com
    Show / Hide Table of Contents

    Class IUsesFaceTrackingMethods

    Inheritance
    Object
    IUsesFaceTrackingMethods
    Namespace: Unity.MARS.Providers
    Syntax
    public static class IUsesFaceTrackingMethods : object

    Methods

    GetCurrentMaximumFaceCount(IUsesFaceTracking)

    Gets the current maximum face count. If RequestedMaximumFaceCount set is supported, will reflect that value once the provider has been updated.

    Declaration
    public static int GetCurrentMaximumFaceCount(this IUsesFaceTracking obj)
    Parameters
    Type Name Description
    IUsesFaceTracking obj
    Returns
    Type Description
    Int32

    GetFaces(IUsesFaceTracking, List<IMRFace>)

    Get the currently tracked faces

    Declaration
    public static void GetFaces(this IUsesFaceTracking obj, List<IMRFace> faces)
    Parameters
    Type Name Description
    IUsesFaceTracking obj
    List<IMRFace> faces

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

    GetMaxFaceCount(IUsesFaceTracking)

    Get the total number of faces that can be tracked by this provider simultaneously

    Declaration
    public static int GetMaxFaceCount(this IUsesFaceTracking obj)
    Parameters
    Type Name Description
    IUsesFaceTracking obj
    Returns
    Type Description
    Int32

    The maximum possible number of simultaneously tracked faces, -1 if there is no theoretical limit

    GetRequestedMaximumFaceCount(IUsesFaceTracking)

    Gets the current number of faces to track simultaneously.

    Declaration
    public static int GetRequestedMaximumFaceCount(this IUsesFaceTracking obj)
    Parameters
    Type Name Description
    IUsesFaceTracking obj
    Returns
    Type Description
    Int32

    GetSupportedFaceCount(IUsesFaceTracking)

    The absolute maximum number of faces that can be supported by the provider. -1 if unlimited.

    Declaration
    public static int GetSupportedFaceCount(this IUsesFaceTracking obj)
    Parameters
    Type Name Description
    IUsesFaceTracking obj
    Returns
    Type Description
    Int32

    SetRequestedMaximumFaceCount(IUsesFaceTracking, Int32)

    Sets the current maximum faces to track simultaneously.

    Declaration
    public static void SetRequestedMaximumFaceCount(this IUsesFaceTracking obj, int requestedFaceCount)
    Parameters
    Type Name Description
    IUsesFaceTracking obj
    Int32 requestedFaceCount

    SubscribeFaceAdded(IUsesFaceTracking, Action<IMRFace>)

    Subscribe to the faceAdded event, which is called whenever a face becomes tracked for the first time

    Declaration
    public static void SubscribeFaceAdded(this IUsesFaceTracking obj, Action<IMRFace> faceAdded)
    Parameters
    Type Name Description
    IUsesFaceTracking obj
    Action<IMRFace> faceAdded

    The delegate to subscribe

    SubscribeFaceRemoved(IUsesFaceTracking, Action<IMRFace>)

    Subscribe to the faceRemoved event, which is called whenever a tracked face is removed (lost)

    Declaration
    public static void SubscribeFaceRemoved(this IUsesFaceTracking obj, Action<IMRFace> faceRemoved)
    Parameters
    Type Name Description
    IUsesFaceTracking obj
    Action<IMRFace> faceRemoved

    The delegate to subscribe

    SubscribeFaceUpdated(IUsesFaceTracking, Action<IMRFace>)

    Subscribe to the faceUpdated event, which is called when a tracked face has updated data

    Declaration
    public static void SubscribeFaceUpdated(this IUsesFaceTracking obj, Action<IMRFace> faceUpdated)
    Parameters
    Type Name Description
    IUsesFaceTracking obj
    Action<IMRFace> faceUpdated

    The delegate to subscribe

    UnsubscribeFaceAdded(IUsesFaceTracking, Action<IMRFace>)

    Unsubscribe a delegate from the faceAdded event

    Declaration
    public static void UnsubscribeFaceAdded(this IUsesFaceTracking obj, Action<IMRFace> faceAdded)
    Parameters
    Type Name Description
    IUsesFaceTracking obj
    Action<IMRFace> faceAdded

    The delegate to unsubscribe

    UnsubscribeFaceRemoved(IUsesFaceTracking, Action<IMRFace>)

    Unsubscribe a delegate from the faceRemoved event

    Declaration
    public static void UnsubscribeFaceRemoved(this IUsesFaceTracking obj, Action<IMRFace> faceRemoved)
    Parameters
    Type Name Description
    IUsesFaceTracking obj
    Action<IMRFace> faceRemoved

    The delegate to unsubscribe

    UnsubscribeFaceUpdated(IUsesFaceTracking, Action<IMRFace>)

    Unsubscribe a delegate from the faceUpdated event

    Declaration
    public static void UnsubscribeFaceUpdated(this IUsesFaceTracking obj, Action<IMRFace> faceUpdated)
    Parameters
    Type Name Description
    IUsesFaceTracking obj
    Action<IMRFace> faceUpdated

    The delegate to unsubscribe

    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