Skip to content
Orbdale

Orbdale Terrain · OrbdaleTerrainPCG module · member function

UOrbdaleTerrainPCGSubsystem::

CreateData

Experimental

Make 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

NameTypeDefaultMeaning
WorldUWorld*—

The world; its terrain subsystem supplies the snapshot.

Boundsconst FBox&—

World cm. An invalid box means the whole terrain.

Paramsconst FOrbdaleTerrainPCGParams&—

Surface, accuracy, attributes, step.

LayerSetconst UOrbdaleTerrainLayerSet*—

Names the layer attributes; may be null.

ContextFPCGContext*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.