Singularity/Library/PackageCache/com.unity.visualscripting@1.../Editor/VisualScripting.Flow/Events/EventUnitDescriptor.cs

25 lines
606 B
C#
Raw Permalink Normal View History

2024-05-06 14:45:45 -04:00
using System.Collections.Generic;
namespace Unity.VisualScripting
{
[Descriptor(typeof(IEventUnit))]
public class EventUnitDescriptor<TEvent> : UnitDescriptor<TEvent>
where TEvent : class, IEventUnit
{
public EventUnitDescriptor(TEvent @event) : base(@event) { }
protected override string DefinedSubtitle()
{
return "Event";
}
protected override IEnumerable<EditorTexture> DefinedIcons()
{
if (unit.coroutine)
{
yield return BoltFlow.Icons.coroutine;
}
}
}
}