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