Experimental: this API is experimental and might be changed or removed in the future.

NodeCreationContext

struct in UnityEditor.Experimental.UIElements.GraphView

Switch to Manual

Description

This struct represents the context when the user initiates creating a graph node.

Variables

indexThe index where the created node will be inserted.
screenMousePositionPosition of the click that initiated the request to create a node, in the coordinate space of the screen.
targetThe VisualElement where the created node will be added.