Version: 2020.2
언어: 한국어
public void OnNotify (Playables.Playable origin, Playables.INotification notification, object context);

파라미터

origin The playable that sent the notification.
notification The received notification.
context User defined data that depends on the type of notification. Uses this to pass necessary information that can change with each invocation.

설명

The method called when a notification is raised.

PlayableOutputExtensions.PushNotification contains an example on how to send a notification.

using UnityEngine;
using UnityEngine.Playables;
class NotificationLogger : MonoBehaviour, INotificationReceiver
{
    public void OnNotify(Playable origin, INotification notification, object context)
    {
        Debug.Log(notification.id);
    }
}