A game about forced loneliness, made by TACStudios
1namespace Unity.VisualScripting 2{ 3 [Descriptor(typeof(CustomEvent))] 4 public class CustomEventDescriptor : EventUnitDescriptor<CustomEvent> 5 { 6 public CustomEventDescriptor(CustomEvent @event) : base(@event) { } 7 8 protected override string DefinedSubtitle() 9 { 10 return null; 11 } 12 13 protected override void DefinedPort(IUnitPort port, UnitPortDescription description) 14 { 15 base.DefinedPort(port, description); 16 17 var index = unit.argumentPorts.IndexOf(port as ValueOutput); 18 19 if (index >= 0) 20 { 21 description.label = "Arg. " + index; 22 } 23 } 24 } 25}