Orrery Terrain · OrreryTerrainRenderer module · function
AddGrassVarietyReferences
ExperimentalReport the engine objects of built entries to the garbage collector.
Declaration
void AddGrassVarietyReferences(FReferenceCollector& Collector, TArray<FTerrainGrassVarietyEntry>& Entries);- Header
#include "Grass/TerrainGrassVarieties.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 (the GC callback).
Description
Call from the owner's AddReferencedObjects (a UObject subsystem, or an FGCObject), with the same array it keeps. The meshes and materials stay alive through the grass types while the loader's handle is held, but the entries must not depend on that.
Parameters
| Name | Type | Default | Meaning |
|---|---|---|---|
Collector | FReference | — | — |
Entries | TArray< | — | — |
Note.
Game thread (the GC callback).