UI Node Connect 4  v4.1
MeadowGames.UINodeConnect4.Connection Class Reference

Inherits MeadowGames.UINodeConnect4.IGraphElement, MeadowGames.UINodeConnect4.ISelectable, MeadowGames.UINodeConnect4.IClickable, MeadowGames.UINodeConnect4.IDraggable, and MeadowGames.UINodeConnect4.IHover.

Public Types

enum  CurveStyle { Spline, Z_Shape, Soft_Z_Shape, Line }
 

Public Member Functions

void OnPointerDown ()
 
void OnPointerUp ()
 
void Remove ()
 
void Select ()
 
void Unselect ()
 
void UpdateLine (bool updatePortsIcons=true)
 
List< ConnectionGetCrossedConnections ()
 
void OnDrag ()
 
void OnPointerHoverEnter ()
 
void OnPointerHoverExit ()
 
void SetLabel (string value)
 
void RemoveLabel ()
 
Connection Clone ()
 
Connection CopyVariables ()
 

Static Public Member Functions

static Connection NewConnection (Port port0, Port port1)
 
static Connection NewConnection (Port port0, Port port1, Connection connectionTemplate)
 
static Connection GetConnection (Port port0, Port port1)
 

Public Attributes

GraphManager graphManager
 
Port port0
 
Port port1
 
Color selectedColor = new Color(1, 0.58f, 0.04f)
 
Color hoverColor = new Color(1, 0.81f, 0.3f)
 
Color defaultColor = new Color(0.98f, 0.94f, 0.84f)
 
CurveStyle curveStyle = CurveStyle.Soft_Z_Shape
 
ConnectionLabel label
 
Line line
 
int Priority => 0
 

Properties

string ID [get, set]
 
string SID [get, set]
 
Color ElementColor [get, set]
 
bool EnableDrag [get, set]
 
bool EnableHover [get, set]
 
bool EnableSelect [get, set]
 
bool DisableClick [get, set]
 
- Properties inherited from MeadowGames.UINodeConnect4.IGraphElement
string ID [get, set]
 
string SID [get, set]
 
Color ElementColor [get, set]
 
- Properties inherited from MeadowGames.UINodeConnect4.IElement
int Priority [get]
 
- Properties inherited from MeadowGames.UINodeConnect4.ISelectable
bool EnableSelect [get, set]
 
- Properties inherited from MeadowGames.UINodeConnect4.IClickable
bool DisableClick [get]
 
- Properties inherited from MeadowGames.UINodeConnect4.IDraggable
bool EnableDrag [get, set]
 
- Properties inherited from MeadowGames.UINodeConnect4.IHover
bool EnableHover [get, set]