Description
The Layout
method is a public instance method of the Editor.NodeEditor.Connection
class. It is responsible for arranging the visual layout of a connection between nodes in the node editor. This method ensures that the connection is properly displayed according to its current configuration and style settings.
Usage
To use the Layout
method, you must have an instance of the Editor.NodeEditor.Connection
class. This method does not take any parameters and does not return a value. It is typically called when the connection's visual representation needs to be updated, such as after changing its input or output positions, or when the connection style is modified.
Example
// Assuming 'connection' is an instance of Editor.NodeEditor.Connection
connection.Layout();
// This will update the layout of the connection based on its current properties
// such as InputPosition, OutputPosition, and ConnectionStyle.