Version: 2021.2
언어: 한국어
public static void PushNotification (U output, Playables.Playable origin, Playables.INotification notification, object context);

파라미터

output The output sending the notification.
origin The originating playable of the notification.
notification The notification to be sent.
context Extra information about the state when the notification was fired.

설명

Queues a notification to be sent through the Playable system.

using UnityEngine;
using UnityEngine.Playables;
class ExamplePlayableBehaviour : PlayableBehaviour
{
    private static readonly Notification s_BlendNotification = new Notification("BlendComplete");
    private float m_lastWeight = 0;

public override void PrepareFrame(Playable playable, FrameData info) { if (m_lastWeight < 1 &amp;&amp; info.effectiveWeight == 1) { info.output.PushNotification(playable, s_BlendNotification, m_lastWeight); } m_lastWeight = info.effectiveWeight; } }
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961