docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IProvidesFacialExpressions

    Defines the API for a facial expression provider

    Inherited Members
    IFunctionalityProvider.LoadProvider()
    IFunctionalityProvider.ConnectSubscriber(object)
    IFunctionalityProvider.UnloadProvider()
    Namespace: Unity.MARS.Providers
    Assembly: Unity.MARS.Interfaces.dll
    Syntax
    [MovedFrom("Unity.MARS")]
    public interface IProvidesFacialExpressions : IFunctionalityProvider

    Methods

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

    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<float> engaged

    What happens when the facial expression is shown

    Action<float> disengaged

    What happens when the facial expression stops being shown

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

    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<float> engaged

    The engaged action to remove from the event handler

    Action<float> disengaged

    The disengaged action to remove from the event handler

    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)