Orbdale Terrain · OrbdaleTerrainPCG module · member function
UOrbdaleTerrainPCGSubsystem::
CreateData
ExperimentalMake the surface data for this world's terrain.
Declaration
static UOrbdaleTerrainPCGData* CreateData(UWorld* World, const FBox& Bounds, const FOrbdaleTerrainPCGParams& Params,
const UOrbdaleTerrainLayerSet* LayerSet, FPCGContext* Context = nullptr);- Header
#include "OrbdaleTerrainPCGRefresh.h"- Module
PublicDependencyModuleNames.Add("OrbdaleTerrainPCG");in your module’s Build.cs.- Stability
- Experimental: supported, may change in a minor version, with a changelog line.
- Thread
- Game thread: the snapshot is acquired here.
Parameters
| Name | Type | Default | Meaning |
|---|---|---|---|
World | UWorld* | — | The world; its terrain subsystem supplies the snapshot. |
Bounds | const FBox& | — | World cm. An invalid box means the whole terrain. |
Params | const FOrbdale | — | Surface, accuracy, attributes, step. |
LayerSet | const UOrbdale | — | Names the layer attributes; may be null. |
Context | FPCGContext* | nullptr | PCG context to create the object under, or null on the game thread. |
Returns
The data, or null when the world has no terrain yet.
Note.
Game thread: the snapshot is acquired here.