Maze / Library /PackageCache /com.unity.visualscripting@1.8.0 /Editor /VisualScripting.Flow /Events /EventUnitDescriptor.cs
| using System.Collections.Generic; | |
| namespace Unity.VisualScripting | |
| { | |
| [] | |
| 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; | |
| } | |
| } | |
| } | |
| } | |