Rasagar/Library/PackageCache/com.unity.timeline/Runtime/Events/Signals/SignalAsset.cs
2024-08-26 23:07:20 +03:00

24 lines
677 B
C#

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);
}
}
}