penis/Library/PackageCache/com.unity.visualscripting@6279e2b7c485/Editor/VisualScripting.Flow/Events/EventUnitDescriptor.cs
Vladislav 2750530006 1
2025-09-18 15:33:57 +03:00

25 lines
606 B
C#

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