Skip to content
Orbdale

Orbdale Terrain · OrbdaleTerrainPCG module · member function

UOrbdaleTerrainPCGData::

Initialize

Experimental

Bind the data to a snapshot.

Declaration

void Initialize(const OrbdaleTerrain::Native::FGroundQuery& InQuery, const FBox& InWorldBounds,
                const FOrbdaleTerrainPCGParams& InParams, const TArray<FName>& InLayerNames,
                FName InTerrainId, int64 InEditRevision);
Header
#include "OrbdaleTerrainPCGData.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.

Parameters

NameTypeDefaultMeaning
InQueryconst OrbdaleTerrain::Native::FGroundQuery&—

The snapshot, acquired on the game thread (UOrbdaleTerrainSubsystem::AcquireQuery).

InWorldBoundsconst FBox&—

The area the data answers for, world cm. Samples outside it get density 0.

InParamsconst FOrbdaleTerrainPCGParams&—

Surface, accuracy, attributes, step.

InLayerNamesconst TArray<FName>&—

One name per paint layer, index = layer, up to 256 (more are dropped). Empty: Layer0 to Layer15.

InTerrainIdFName—

Stable id of the terrain, part of the CRC.

InEditRevisionint64—

The last revision that changed the ground (not streaming), part of the CRC.

Note.

Game thread.