Inheritence

Summary

Base class for graph editor connection line styles, e.g. curvy or angular.

Constructors

ConnectionStyle

Methods

AddHandle Add a handle that the user can drag horizontally or vertically. This should only be called in Editor.NodeEditor.ConnectionStyle.OnConfigureHandles(Editor.NodeEditor.Connection,Vector2,Vector2).
Layout Updates the handles, bounds, and path of a connection.
OnConfigureHandles Call Editor.NodeEditor.ConnectionStyle.AddHandle(Editor.NodeEditor.ConnectionHandleConfig) here.
OnGetBounds When overridden, gets a rectangle in scene space that fully encloses the line of a given connection.
OnLayout When overridden, calls methods like Editor.GraphicsLine.MoveTo(Vector2) and Editor.GraphicsLine.LineTo(Vector2) on the given connection to describe its path in local space.
OnPreLayout Called at the start of Editor.NodeEditor.ConnectionStyle.Layout(Editor.NodeEditor.Connection,Vector2,Vector2). A good time to set Editor.NodeEditor.Connection.StyleData.
ResetHandle

Static Properties

Default Default connection style if not overridden by Editor.NodeEditor.GraphView.ConnectionStyle.

Static Methods

SnapToGrid
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.