Navigation
API > API/Runtime > API/Runtime/Foliage
Inheritance Hierarchy
- UActorComponent
- UProceduralFoliageComponent
References
| Module | Foliage |
| Header | /Engine/Source/Runtime/Foliage/Public/ProceduralFoliageComponent.h |
| Include | #include "ProceduralFoliageComponent.h" |
Syntax
UCLASS (BlueprintType, MinimalAPI)
class UProceduralFoliageComponent : public UActorComponent
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bAllowBSP | Whether to place foliage on BSP | |
| bool | bAllowFoliage | Whether to place foliage on other blocking foliage geometry | |
| bool | bAllowLandscape | Whether to place foliage on landscape | |
| bool | bAllowStaticMesh | Whether to place foliage on StaticMesh | |
| bool | bAllowTranslucent | Whether to place foliage on translucent geometry | |
| bool | bShowDebugTiles | Whether to visualize the tiles used for the foliage spawner simulation | |
| TObjectPtr< UProceduralFoliageSpawner > | FoliageSpawner | The procedural foliage spawner used to generate foliage instances within this volume. | |
| float | TileOverlap | The amount of overlap between simulation tiles (in cm). |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UProceduralFoliageComponent
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | GenerateProceduralContent
(
TArray< FDesiredFoliageInstance >& OutInstances |
Runs the procedural foliage simulation to generate a list of desired instances to spawn. | |
| bool | GenerateProceduralContent
(
const FGenerateProceduralContentParams& InParams, |
||
| FBox | GetBounds () |
||
| FBodyInstance * | |||
| FGenerateProceduralContentParams | Returns a params struct based on this component properties. | ||
| const FGuid & | |||
| void | GetTileLayout
(
const FGenerateProceduralContentParams& Params, |
||
| void | GetTileLayout
(
FTileLayout& OutTileLayout |
Determines the basic layout of the tiles used in the simulation | |
| FVector | GetWorldPosition
(
const FGenerateProceduralContentParams& Param |
||
| FVector | |||
| bool | |||
| bool | |||
| void | |||
| void | |||
| void | RemoveProceduralContent
(
UWorld* InWorld, |
||
| void | RemoveProceduralContent
(
bool bInRebuildTree |
Removes all spawned foliage instances in the level that were spawned by this component | |
| bool | ResimulateProceduralFoliage
(
TFunctionRef< void(const TArray< FDesiredFoliageInstance >&)> AddInstancesFunc |
Runs the procedural foliage simulation, removes the old result, creates instances with the new result | |
| void | SetSpawningVolume
(
AVolume* InSpawningVolume |
||
| void |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FGenerateProceduralContentParams |