Orrery Terrain · OrreryTerrainPCG module · member function
UOrreryTerrainPCGData::
Initialize
ExperimentalBind the data to a snapshot.
Declaration
void Initialize(const OrreryTerrain::Native::FGroundQuery& InQuery, const FBox& InWorldBounds,
const FOrreryTerrainPCGParams& InParams, const TArray<FName>& InLayerNames,
FName InTerrainId, int64 InEditRevision);- Header
#include "OrreryTerrainPCGData.h"- Module
PublicDependencyModuleNames.Add("OrreryTerrainPCG");in your module’s Build.cs.- Stability
- Experimental: supported, may change in a minor version, with a changelog line.
- Thread
- Game thread.
Parameters
| Name | Type | Default | Meaning |
|---|---|---|---|
InQuery | const Orrery | — | The snapshot, acquired on the game thread ( |
InWorldBounds | const FBox& | — | The area the data answers for, world cm. Samples outside it get density 0. |
InParams | const FOrrery | — | Surface, accuracy, attributes, step. |
InLayerNames | const TArray< | — | One name per paint layer, index = layer, up to 256 (more are dropped). Empty: Layer0 to Layer15. |
InTerrainId | FName | — | Stable id of the terrain, part of the CRC. |
InEditRevision | int64 | — | The last revision that changed the ground (not streaming), part of the CRC. |
Note.
Game thread.