Description
The OutputPosition
property of the Connection
class in the Editor.NodeEditor
namespace represents the position of the output point of a connection in a node editor. This property is of type Vector2
, which typically holds the x and y coordinates of the output position in the editor's coordinate space.
Usage
Use the OutputPosition
property to get or set the position of the output point of a connection in a node editor. This can be useful for aligning connections or for custom rendering logic that depends on the position of the connection's output.
Example
// Example of accessing the OutputPosition property
// Assuming 'connection' is an instance of Editor.NodeEditor.Connection
Vector2 outputPos = connection.OutputPosition;
// Set a new position for the output
connection.OutputPosition = new Vector2(100.0f, 200.0f);