Orrery Terrain · OrreryTerrain module · member function
UOrreryTerrainSubsystem::
LoadTerrainAsync
Load the save a reference names, through LoadTerrainFromFile with the reference's file hash: a file that is not the save the game recorded is refused as Corrupt.
Declaration
void LoadTerrainAsync(const FOrreryTerrainSaveRef& Ref, FOnTerrainLoaded Done);- Header
#include "OrreryTerrainSubsystem.h"- Module
PublicDependencyModuleNames.Add("OrreryTerrain");in your module’s Build.cs.- Stability
- Stable: changes within a major version only add.
- Thread
- Game thread.
Description
A missing file answers NotFound.
Parameters
| Name | Type | Default | Meaning |
|---|---|---|---|
Ref | const FOrrery | — | The reference SaveTerrainAsync gave; names the file and its hash. |
Done | FOn | — | Called on the game thread exactly once, before this function returns (the codes page from the file; nothing is read whole). |
Note.
Game thread. Refused on a read-only terrain and inside a ground-changed broadcast.