Skip to content
Brass Orrery

Orrery Terrain · OrreryTerrainRenderer module · member function

FTerrainGrassSystem::

ForEachComponent

Experimental

Visit every live component in canonical order (tile Y, tile X, variety, sub-cell).

Declaration

void ForEachComponent(TFunctionRef<void(FIntPoint Tile, int32 Variety, int32 SubCell, uint64 Serial, uint64 Hash,
                                        const UInstancedStaticMeshComponent& Component)> Visit) const;
Header
#include "Grass/TerrainGrassSystem.h"
Module
PublicDependencyModuleNames.Add("OrreryTerrainRenderer"); in your module’s Build.cs.
Stability
Experimental: supported, may change in a minor version, with a changelog line.
Thread
Game thread only. (the rule of FTerrainGrassSystem)

Description

Serial counts the results presented into that sub-cell's component since it was made; Hash is FNV-1a 64 over the instance buffer it shows (the transforms and random ids, in buffer order).

Parameters

NameTypeDefaultMeaning
VisitTFunctionRef<void(FIntPoint Tile, int32 Variety, int32 SubCell, uint64 Serial, uint64 Hash, const UInstancedStaticMeshComponent& Component)>——