Class RequirePortAttribute
- Namespace
- Ceres.Annotations
- Assembly
- Ceres.Graph.dll
Notify editor that this node require input port and validate its value type
[AttributeUsage(AttributeTargets.Class, Inherited = false)]
public sealed class RequirePortAttribute : Attribute
- Inheritance
-
RequirePortAttribute
- Inherited Members
Constructors
RequirePortAttribute(Type, bool)
public RequirePortAttribute(Type portType = null, bool allowSubclass = true)
Parameters
Properties
AllowSubclass
Whether allow input port type is subclass of PortType
public bool AllowSubclass { get; }
Property Value
PortType
Require port type constraint
public Type PortType { get; }