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

    Interface IProvidesFaceTracking

    Defines the API for a Face Tracking Provider This functionality provider is responsible for face tracking

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

    Methods

    GetFaces(List<IMRFace>)

    Get the currently tracked faces

    Declaration
    void GetFaces(List<IMRFace> faces)
    Parameters
    Type Name Description
    List<IMRFace> faces

    A list of MRFace objects to which the currently tracked faces will be added

    GetMaxFaceCount()

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

    Declaration
    int GetMaxFaceCount()
    Returns
    Type Description
    Int32

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

    Events

    FaceAdded

    Called when a face become tracked for the first time

    Declaration
    event Action<IMRFace> FaceAdded
    Event Type
    Type Description
    Action<IMRFace>

    FaceRemoved

    Called when a tracked face is removed (lost)

    Declaration
    event Action<IMRFace> FaceRemoved
    Event Type
    Type Description
    Action<IMRFace>

    FaceUpdated

    Called when a tracked face has updated data

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