Orrery Terrain · OrreryTerrainRenderer module · member function
FTerrainGrassSystem::
ForEachComponent
ExperimentalVisit 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
| Name | Type | Default | Meaning |
|---|---|---|---|
Visit | TFunction | — | — |