Navigation
API > API/Runtime > API/Runtime/Foliage
Inheritance Hierarchy
- UObject
- UProceduralFoliageSpawner
References
| Module | Foliage |
| Header | /Engine/Source/Runtime/Foliage/Public/ProceduralFoliageSpawner.h |
| Include | #include "ProceduralFoliageSpawner.h" |
Syntax
UCLASS (BlueprintType, Blueprintable, MinimalAPI)
class UProceduralFoliageSpawner : public UObject
Variables
| Type | Name | Description | |
|---|---|---|---|
| FThreadSafeCounter | LastCancel | ||
| float | MinimumQuadTreeSize | Minimum size of the quad tree used during the simulation. | |
| int32 | NumUniqueTiles | The number of unique tiles to generate. | |
| int32 | RandomSeed | The seed used for generating the randomness of the simulation. | |
| float | TileSize | Length of the tile (in cm) along one axis. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UProceduralFoliageSpawner
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| UProceduralFoliageTile * | Creates a temporary empty tile with the appropriate settings created for it. | ||
| void | Empty () |
||
| const TArray< TSoftObjectPtr< UMaterialInterface > > & | |||
| const TArray< FFoliageTypeObject > & | |||
| void | GetInstancesToSpawn
(
TArray< FProceduralFoliageInstance >& OutInstances, |
Returns the instances that need to spawn for a given min,max region | |
| int32 | |||
| const UProceduralFoliageTile * | GetRandomTile
(
int32 X, |
Takes a tile index and returns a random tile associated with that index. | |
| void | Serialize
(
FArchive& Ar |
||
| void | Simulate
(
int32 NumSteps |
||
| bool |