docs.unity3d.com
    Show / Hide Table of Contents

    Interface IProvidesFacialExpressions

    Defines the API for a facial expression provider

    Namespace: Unity.MARS.Providers
    Syntax
    public interface IProvidesFacialExpressions : IFunctionalityProvider

    Methods

    SubscribeToExpression(MRFaceExpression, Action<Single>, Action<Single>)

    Register for events associated with a given facial expression

    Declaration
    void SubscribeToExpression(MRFaceExpression expression, Action<float> engaged, Action<float> disengaged)
    Parameters
    Type Name Description
    MRFaceExpression expression

    The named facial expression to subscribe to

    Action<Single> engaged

    What happens when the facial expression is shown

    Action<Single> disengaged

    What happens when the facial expression stops being shown

    UnsubscribeToExpression(MRFaceExpression, Action<Single>, Action<Single>)

    Unregister for events associated with a given facial expression

    Declaration
    void UnsubscribeToExpression(MRFaceExpression expression, Action<float> engaged, Action<float> disengaged)
    Parameters
    Type Name Description
    MRFaceExpression expression

    The named facial expression to unsubscribe from

    Action<Single> engaged

    The engaged action to remove from the event handler

    Action<Single> disengaged

    The disengaged action to remove from the event handler

    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