Rect BoundingRect { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The BoundingRect property of the Editor.NodeEditor.Connection class represents the rectangular area that bounds the connection line between nodes in the node editor. This property is virtual, allowing derived classes to override its behavior if necessary.

Usage

Use the BoundingRect property to retrieve or define the bounding rectangle of a connection. This can be useful for layout calculations, hit testing, or rendering purposes within the node editor environment.

Example

// Example of accessing the BoundingRect property
Editor.NodeEditor.Connection connection = new Editor.NodeEditor.Connection();
Sandbox.Rect boundingRect = connection.BoundingRect;

// Use boundingRect for layout or rendering logic
float width = boundingRect.Width;
float height = boundingRect.Height;