Orrery Terrain · OrreryTerrainEditor module · member function
FOrreryTerrainAuthoringSync::
Flush
Editor onlyCapture World's editor terrain into its authoring asset if it is dirty, making the asset when there is none: the real one for a saved map, a transient one otherwise.
Declaration
bool Flush(UWorld& World, const TCHAR* Reason);- Header
#include "Persist/OrreryTerrainAuthoringSync.h"- Module
PublicDependencyModuleNames.Add("OrreryTerrainEditor");in an editor module’s Build.cs: an editor module, not in packaged games.- Stability
- Stable: changes within a major version only add.
- Thread
- Game thread, editor only. (the rule of FOrreryTerrainAuthoringSync)
Description
A transient asset is replaced by the real one once the map has a name.
Parameters
| Name | Type | Default | Meaning |
|---|---|---|---|
World | UWorld& | — | A tracked editor world. |
Reason | const TCHAR* | — | For the log: "save", "PIE", "re-create". |
Returns
true when the asset holds the live state afterwards (also when nothing was dirty).