Skip to content
Orbdale

Orbdale Terrain · OrbdaleTerrainPCG module · class

UOrbdaleTerrainPCGData

Experimental

The terrain as PCG surface data (Tier 3).

Declaration

UCLASS(BlueprintType, ClassGroup=(Procedural))
class UOrbdaleTerrainPCGData : public UPCGSurfaceData
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.
Derives from
UPCGSurfaceData
Blueprint
“Orbdale Terrain PCGData”, a Blueprint type

Description

Holds one immutable ground snapshot (a FGroundQuery, plain C++ behind a shared pointer, so the GC never walks it) and answers every sample through SampleGround. The sampling methods read only that snapshot and this object's plain members, so PCG may call them on any worker. Create and Initialize it on the game thread: the query is acquired there.

Each sampled point gets Z and a rotation from the face normal, density, and the attributes of FOrbdaleTerrainPCGAttributes. Layer weights are named from the layer set (Layer0..Layer15 without one).

Note.

Not a landscape: graph inputs that expect ULandscape data cannot see it. Use the Get Orbdale Terrain Data node, or Get Actor Data on the terrain actor.

Functions