Class Port
  
  
  
  
  
  
  
  Assembly: UnityEditor.dll
  Syntax
  
    public class Port : GraphElement, IEventHandler, ITransform, IUIElementDataWatch, IEnumerable<VisualElement>, IEnumerable, IVisualElementScheduler, IStyle, ISelectable
   
  Constructors
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Port(Orientation, Direction, Port.Capacity, Type)
  
  
  Declaration
  
    protected Port(Orientation portOrientation, Direction portDirection, Port.Capacity portCapacity, Type type)
   
  Parameters
  
  Fields
  
  
    |
    Improve this Doc
  
  
    View Source
  
  m_ConnectorBox
  
  
  Declaration
  
    protected VisualElement m_ConnectorBox
   
  Field Value
  
  
    |
    Improve this Doc
  
  
    View Source
  
  m_ConnectorBoxCap
  
  
  Declaration
  
    protected VisualElement m_ConnectorBoxCap
   
  Field Value
  
  
    |
    Improve this Doc
  
  
    View Source
  
  m_ConnectorText
  
  
  Declaration
  
    protected Label m_ConnectorText
   
  Field Value
  
  
    |
    Improve this Doc
  
  
    View Source
  
  m_EdgeConnector
  
  
  Declaration
  
    protected EdgeConnector m_EdgeConnector
   
  Field Value
  
  Properties
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  capacity
  
  
  Declaration
  
    public Port.Capacity capacity { get; }
   
  Property Value
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  collapsed
  
  
  Declaration
  
    public virtual bool collapsed { get; }
   
  Property Value
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  connected
  
  
  Declaration
  
    public virtual bool connected { get; }
   
  Property Value
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  connections
  
  
  Declaration
  
    public virtual IEnumerable<Edge> connections { get; }
   
  Property Value
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  direction
  
  
  Declaration
  
    public Direction direction { get; }
   
  Property Value
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  disabledPortColor
  
  
  Declaration
  
    public Color disabledPortColor { get; }
   
  Property Value
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  edgeConnector
  
  
  Declaration
  
    public EdgeConnector edgeConnector { get; }
   
  Property Value
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  highlight
  
  
  Declaration
  
    public bool highlight { get; set; }
   
  Property Value
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  node
  
  
  Declaration
  
    public Node node { get; }
   
  Property Value
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  orientation
  
  
  Declaration
  
    public Orientation orientation { get; }
   
  Property Value
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  portCapLit
  
  
  Declaration
  
    public bool portCapLit { get; set; }
   
  Property Value
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  portColor
  
  
  Declaration
  
    public Color portColor { get; set; }
   
  Property Value
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  portName
  
  
  Declaration
  
    public string portName { get; set; }
   
  Property Value
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  portType
  
  
  Declaration
  
    public Type portType { get; set; }
   
  Property Value
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  source
  
  
  Declaration
  
    public object source { get; set; }
   
  Property Value
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  visualClass
  
  
  Declaration
  
    public string visualClass { get; set; }
   
  Property Value
  
  Methods
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Connect(Edge)
  
  
  Declaration
  
    public virtual void Connect(Edge edge)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | Edge | edge |  | 
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  ConnectTo(Port)
  
  
  Declaration
  
    public Edge ConnectTo(Port other)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | Port | other |  | 
    
  
  Returns
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  ConnectTo<T>(Port)
  
  
  Declaration
  
    public T ConnectTo<T>(Port other)
    where T : Edge, new()
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | Port | other |  | 
    
  
  Returns
  
  Type Parameters
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  ContainsPoint(Vector2)
  
  
  Declaration
  
    public override bool ContainsPoint(Vector2 localPoint)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | Vector2 | localPoint |  | 
    
  
  Returns
  
  Overrides
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Create<TEdge>(Orientation, Direction, Port.Capacity, Type)
  
  
  Declaration
  
    public static Port Create<TEdge>(Orientation orientation, Direction direction, Port.Capacity capacity, Type type)
    where TEdge : Edge, new()
   
  Parameters
  
  Returns
  
  Type Parameters
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Disconnect(Edge)
  
  
  Declaration
  
    public virtual void Disconnect(Edge edge)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | Edge | edge |  | 
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  DisconnectAll()
  
  
  Declaration
  
    public virtual void DisconnectAll()
   
  
    |
    Improve this Doc
  
  
    View Source
  
  
  ExecuteDefaultAction(EventBase)
  
  
  Declaration
  
    protected override void ExecuteDefaultAction(EventBase evt)
   
  Parameters
  
  Overrides
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  GetGlobalCenter()
  
  
  Declaration
  
    public override Vector3 GetGlobalCenter()
   
  Returns
  
  Overrides
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  OnStartEdgeDragging()
  
  
  Declaration
  
    public virtual void OnStartEdgeDragging()
   
  
    |
    Improve this Doc
  
  
    View Source
  
  
  OnStopEdgeDragging()
  
  
  Declaration
  
    public virtual void OnStopEdgeDragging()
   
  
    |
    Improve this Doc
  
  
    View Source
  
  
  OnStyleResolved(ICustomStyle)
  
  
  Declaration
  
    protected override void OnStyleResolved(ICustomStyle styles)
   
  Parameters
  
  Overrides
  
  Implements
  
  
  
  
  
  
  
  
  Extension Methods