# Vector3.TryParse

## Overload 1

```csharp
static bool TryParse(string str, out Vector3 result)
```

### Parameters

- `str` (`string`)
- `out result` (`Vector3`)

### Returns

`bool`

## Overload 2

```csharp
static bool TryParse(string str, System.IFormatProvider provider, out Vector3 result)
```

Given a string, try to convert this into a vector. Example input formats that work would be "1,1,1", "1;1;1", "[1 1 1]".
            
This handles a bunch of different separators ( ' ', ',', ';', '\n', '\r' ).
            
It also trims surrounding characters ('[', ']', ' ', '\n', '\r', '\t', '"').

### Parameters

- `str` (`string`)
- `provider` (`System.IFormatProvider`)
- `out result` (`Vector3`)

### Returns

`bool`

Declared in [Vector3](/api/Vector3).
Assembly: `Sandbox.System`.
