playtest-unity/playtest/Library/PackageCache/com.unity.timeline@1.7.4/Runtime/Events/Signals/SignalAsset.cs

24 lines
677 B
C#
Raw Normal View History

2023-06-19 23:21:21 -04:00
using System;
using UnityEngine;
namespace UnityEngine.Timeline
{
/// <summary>
/// An asset representing an emitted signal. A SignalAsset connects a SignalEmitter with a SignalReceiver.
/// </summary>
/// <seealso cref="UnityEngine.Timeline.SignalEmitter"/>
/// <seealso cref="UnityEngine.Timeline.SignalReceiver"/>
[AssetFileNameExtension("signal")]
[TimelineHelpURL(typeof(SignalAsset))]
public class SignalAsset : ScriptableObject
{
internal static event Action<SignalAsset> OnEnableCallback;
void OnEnable()
{
if (OnEnableCallback != null)
OnEnableCallback(this);
}
}
}