UnityGame/Library/PackageCache/com.unity.visualscripting/Editor/VisualScripting.Flow/Events/TriggerCustomEventDescriptor.cs
2024-10-27 10:53:47 +03:00

21 lines
610 B
C#

namespace Unity.VisualScripting
{
[Descriptor(typeof(TriggerCustomEvent))]
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;
}
}
}
}