# NodeCreationContext

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

## Definition

* **Type:** Struct
* **Namespace:** [UnityEditor.Experimental.GraphView](/engine/6000.6/script-reference/unityeditor/experimental/graphview.md)
* **Assembly:** UnityEditor

```csharp
public struct NodeCreationContext
```

## Fields

| Value                                                                                                                                | Description                                                                                               |
| ------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------- |
| [index](/engine/6000.6/script-reference/unityeditor/experimental/graphview/nodecreationcontext/index.md)                             | The index where the created node will be inserted.                                                        |
| [screenMousePosition](/engine/6000.6/script-reference/unityeditor/experimental/graphview/nodecreationcontext/screenmouseposition.md) | Position of the click that initiated the request to create a node, in the coordinate space of the screen. |
| [target](/engine/6000.6/script-reference/unityeditor/experimental/graphview/nodecreationcontext/target.md)                           | The VisualElement where the created node will be added.                                                   |
