# GetPortCenterOverride(Port, out Vector2)

> Gets another location for a specific port and checks if the port has an overridden position.

## Definition

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

## GetPortCenterOverride(Port, Vector2)

```csharp
public bool GetPortCenterOverride(Port port, out Vector2 overriddenPosition)
```

### Parameters

**** (\[Port]\(/engine/6000.3/script-reference/unityeditor/experimental/graphview/port)): The specific port.**** (\[Vector2]\(/engine/6000.3/script-reference/unityengine/vector2)): The overridden position, if the port is overridden. Set to Vector2.zero otherwise.

### Returns

| Type                                                          | Description                                                            |
| ------------------------------------------------------------- | ---------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Returns true if the port center is overridden. Returns false otherwise |

### Remarks

Use this method for when nodes are hidden by a collapsed placemat and the edges redirect elsewhere.
