Unity graph tool solution based on different implementation now focused on Unity.Experimental.Graphview
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
790 B

3 years ago
using System;
using JetBrains.Annotations;
3 years ago
using TNode.Models;
3 years ago
using UnityEditor.Experimental.GraphView;
namespace TNode.Attribute{
[MeansImplicitUse]
3 years ago
[AttributeUsage(AttributeTargets.Field, AllowMultiple = true)]
public class InputPortAttribute : PortAttribute{
public InputPortAttribute(string portName, Type nodeLinkType, Port.Capacity capacity, string portAccepted = "*") : base(portName, nodeLinkType, capacity, portAccepted){
}
public InputPortAttribute(Type nodeLinkType, Port.Capacity capacity, string portAccepted="*") : base(nodeLinkType, capacity, portAccepted){
}
public InputPortAttribute(string portName="*",string portAccepted = "*") :base(portName, typeof(NodeLink),Port.Capacity.Multi,portAccepted){
}
3 years ago
}
}