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.
|
|
|
|
using System;
|
|
|
|
|
using JetBrains.Annotations;
|
|
|
|
|
using TNode.Models;
|
|
|
|
|
using UnityEditor.Experimental.GraphView;
|
|
|
|
|
|
|
|
|
|
namespace TNode.Attribute{
|
|
|
|
|
[MeansImplicitUse]
|
|
|
|
|
[AttributeUsage(AttributeTargets.Property, AllowMultiple = true)]
|
|
|
|
|
public class InputAttribute : PortAttribute{
|
|
|
|
|
public InputAttribute(string portName, Type nodeLinkType, Port.Capacity capacity, string portAccepted = "*") : base(portName, nodeLinkType, capacity, portAccepted){
|
|
|
|
|
}
|
|
|
|
|
public InputAttribute(Type nodeLinkType, Port.Capacity capacity, string portAccepted="*") : base(nodeLinkType, capacity, portAccepted){
|
|
|
|
|
}
|
|
|
|
|
public InputAttribute(string portName="*",string portAccepted = "*") :base(portName, typeof(NodeLink),Port.Capacity.Multi,portAccepted){
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|