Maze / Library /PackageCache /com.unity.visualscripting@1.8.0 /Editor /VisualScripting.Flow /Events /TriggerCustomEventDescriptor.cs
| namespace Unity.VisualScripting | |
| { | |
| [] | |
| public class TriggerCustomEventDescriptor : UnitDescriptor<TriggerCustomEvent> | |
| { | |
| public TriggerCustomEventDescriptor(TriggerCustomEvent trigger) : base(trigger) { } | |
| protected override void DefinedPort(IUnitPort port, UnitPortDescription description) | |
| { | |
| base.DefinedPort(port, description); | |
| var index = unit.arguments.IndexOf(port as ValueInput); | |
| if (index >= 0) | |
| { | |
| description.label = "Arg. " + index; | |
| } | |
| } | |
| } | |
| } | |