Skip to content
Brass Orrery

Orrery Terrain · OrreryTerrainRenderer module · function

AddGrassVarietyReferences

Experimental

Report 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

NameTypeDefaultMeaning
CollectorFReferenceCollector&——
EntriesTArray<FTerrainGrassVarietyEntry>&——
Note.

Game thread (the GC callback).