Navigation
API > API/Runtime > API/Runtime/Foliage
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UActorComponent
- UProceduralFoliageComponent
References
| Module | Foliage |
| Header | /Engine/Source/Runtime/Foliage/Public/ProceduralFoliageComponent.h |
| Include | #include "ProceduralFoliageComponent.h" |
Syntax
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, |
Runs the procedural foliage simulation to generate a list of desired instances to spawn. | |
| FBox | GetBounds () |
||
| FBodyInstance * | |||
| FGenerateProceduralContentParams | Returns a params struct based on this component properties. | ||
| const FGuid & | |||
| void | GetTileLayout
(
const FGenerateProceduralContentParams& Params, |
Determines the basic layout of the tiles used in the simulation | |
| 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 | RemoveProceduralContent
(
UWorld* InWorld, |
Removes all spawned foliage instances in the level that were spawned by this component | |
| 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 |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | Called after importing property values for this object (paste, duplicate or .t3d import) Allow the object to perform any cleanup for properties which shouldn't be duplicated or are unsupported by the script serialization |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FGenerateProceduralContentParams |