Description
The ConnectionStyle
property of the Editor.NodeEditor.Connection
class specifies the visual style of the connection line between nodes in the node editor. This property allows you to customize how the connection is rendered, providing options for different visual styles such as straight lines, curves, or other custom styles.
Usage
To use the ConnectionStyle
property, you need to have an instance of the Connection
class. You can then set or get the ConnectionStyle
to define or retrieve the current style of the connection line.
Example usage:
var connection = new Editor.NodeEditor.Connection();
connection.ConnectionStyle = Editor.NodeEditor.ConnectionStyle.Curved;
In this example, the connection style is set to Curved
, which will render the connection line as a curve between the nodes.
Example
var connection = new Editor.NodeEditor.Connection();
connection.ConnectionStyle = Editor.NodeEditor.ConnectionStyle.Curved;