OnNotify(Playable, INotification, object)
The method called when a notification is raised.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Method
- Namespace: UnityEngine.Playables
- Assembly: UnityEngine.CoreModule
OnNotify(Playable, INotification, Object)
void OnNotify(Playable origin, INotification notification, object context)
Parameters
The playable that sent the notification.
The received notification.
User defined data that depends on the type of notification. Uses this to pass necessary information that can change with each invocation.
Remarks
PlayableOutputExtensions.PushNotification contains an example on how to send a notification.
Examples
using UnityEngine;using UnityEngine.Playables;class NotificationLogger : MonoBehaviour, INotificationReceiver{ public void OnNotify(Playable origin, INotification notification, object context) { Debug.Log(notification.id); }}