# GetInsertionIndex(Vector2)

> Retrieves the insertion index in the StackNode if an item is dropped at the specified world position.

## Definition

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

```csharp
public virtual int GetInsertionIndex(Vector2 worldPosition)
```

### Parameters

**** (\[Vector2]\(/engine/6000.7/script-reference/unityengine/vector2)): The world position to get an index from.

### Returns

| Type                                                       | Description                  |
| ---------------------------------------------------------- | ---------------------------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | Returns the insertion index. |
