book_4_sparkGenerated
code_blocksInput

Description

The HandleShape enumeration in the Editor.NodeEditor namespace defines the shape of handles used in the node editor interface. These handles are visual elements that can be used to manipulate nodes or connections within the editor.

The Square field is a member of the HandleShape enum, representing a square-shaped handle. This shape can be used to provide a distinct visual cue for users interacting with the node editor, allowing for intuitive manipulation of nodes or connections.

Usage

To use the Square handle shape in your node editor, you can set the handle shape property of a node or connection to HandleShape.Square. This will render the handle as a square, providing a clear and recognizable interface element for users.

Example usage in a node editor setup:

var node = new Node();
node.HandleShape = HandleShape.Square;

This code snippet demonstrates how to assign the Square handle shape to a node, ensuring that the node's handle appears as a square in the editor.

Example

// Example of setting a handle shape to Square in a node editor
Node myNode = new Node();
myNode.HandleShape = HandleShape.Square;

// This will render the node's handle as a square, providing a clear visual indicator.