Description
The Default
property of the ConnectionStyle
class provides the default connection style used in the node editor. This style is applied when no specific connection style is set in the GraphView.ConnectionStyle
property. The ConnectionStyle
class serves as a base for defining various styles of connection lines, such as curvy or angular, within a graph editor.
Usage
To use the Default
connection style, simply access it through the ConnectionStyle.Default
property. This is a static property, so it can be accessed without instantiating the ConnectionStyle
class.
Example
// Example of using the Default connection style
var defaultStyle = Editor.NodeEditor.ConnectionStyle.Default;
// Use the defaultStyle in a graph view
var graphView = new Editor.NodeEditor.GraphView();
graphView.ConnectionStyle = defaultStyle;