#### [Board](https://docs.dev.board.fun/unity/api/index.html "index")

### [Board.Save](https://docs.dev.board.fun/unity/api/Board.Save.html "Board\.Save"). [BoardSaveGameManager](https://docs.dev.board.fun/unity/api/BoardSaveGameManager.html "Board\.Save\.BoardSaveGameManager")

## BoardSaveGameManager.LoadSaveGame(string) Method

Loads and returns a saved game’s payload.

```
public static System.Threading.Tasks.Task<byte[]> LoadSaveGame(string saveId);
```

#### Parameters

`saveId` [System.String](https://learn.microsoft.com/en-us/dotnet/api/system.string "System\.String")  
The unique identifier for the saved game to load.

#### Returns

[System.Threading.Tasks.Task<](https://learn.microsoft.com/en-us/dotnet/api/system.threading.tasks.task-1 "System\.Threading\.Tasks\.Task\`1") [System.Byte](https://learn.microsoft.com/en-us/dotnet/api/system.byte "System\.Byte") [\[\]](https://learn.microsoft.com/en-us/dotnet/api/system.array "System\.Array") [>](https://learn.microsoft.com/en-us/dotnet/api/system.threading.tasks.task-1 "System\.Threading\.Tasks\.Task\`1")  
The task object representing the asynchronous operation, returning the payload bytes.

#### Exceptions

[System.ArgumentNullException](https://learn.microsoft.com/en-us/dotnet/api/system.argumentnullexception "System\.ArgumentNullException")  
[saveId](https://docs.dev.board.fun/unity/api/BoardSaveGameManager.LoadSaveGame(string).md#Board.Save.BoardSaveGameManager.LoadSaveGame(string).saveId "Board\.Save\.BoardSaveGameManager\.LoadSaveGame\(string\)\.saveId") is `null` or empty.

[System.InvalidOperationException](https://learn.microsoft.com/en-us/dotnet/api/system.invalidoperationexception "System\.InvalidOperationException")  
The load save game operation fails.

### Remarks

Loading a save game automatically activates the players associated with the save game,  
replacing missing profiles with guest players. Therefore, expect to receive an  
event for the [players](https://docs.dev.board.fun/unity/api/BoardSession.players.html "Board\.Session\.BoardSession\.players") to be updated when the save game is loaded.
