# Vector2.TryParse

## Overload 1

```csharp
static bool TryParse(string str, out Vector2 result)
```

### Parameters

- `str` (`string`)
- `out result` (`Vector2`)

### Returns

`bool`

## Overload 2

```csharp
static bool TryParse(string str, System.IFormatProvider provider, out Vector2 result)
```

### Parameters

- `str` (`string`)
- `provider` (`System.IFormatProvider`)
- `out result` (`Vector2`)

### Returns

`bool`

Declared in [Vector2](/api/Vector2).
Assembly: `Sandbox.System`.
