docs.unity3d.com
    目次を表示する/隠す

    Interface IProvidesFacialExpressions

    Defines the API for a facial expression provider

    Inherited Members
    IFunctionalityProvider.LoadProvider()
    IFunctionalityProvider.ConnectSubscriber(Object)
    IFunctionalityProvider.UnloadProvider()
    Namespace: Unity.MARS.Providers
    Syntax
    [MovedFrom("Unity.MARS")]
    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

    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)