# Vector2.Parse

## Overload 1

```csharp
static Vector2 Parse(string str)
```

Given a string, try to convert this into a Vector2. Example formatting is "x,y", "[x,y]", "x y", etc.

### Parameters

- `str` (`string`)

### Returns

`Vector2`

## Overload 2

```csharp
static Vector2 Parse(string str, System.IFormatProvider provider)
```

### Parameters

- `str` (`string`)
- `provider` (`System.IFormatProvider`)

### Returns

`Vector2`

Declared in [Vector2](/api/Vector2).
Assembly: `Sandbox.System`.
