Navigation
API > API/Runtime > API/Runtime/Foliage
A wrapper struct used to allow the use of either FoliageType assets or FoliageType blueprint classes
| Name | FFoliageTypeObject |
| Type | struct |
| Header File | /Engine/Source/Runtime/Foliage/Public/FoliageTypeObject.h |
| Include Path | #include "FoliageTypeObject.h" |
Syntax
USTRUCT ()
struct FFoliageTypeObject
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FFoliageTypeObject() |
FoliageTypeObject.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bIsAsset | bool | Whether this contains an asset object (as opposed to a BP class) | FoliageTypeObject.h | |
| FoliageTypeObject | TObjectPtr< UObject > | The foliage type that will be spawned by the procedural foliage simulation | FoliageTypeObject.h |
|
| TypeInstance | TObjectPtr< UFoliageType > | The actual instance of the foliage type that is used for spawning | FoliageTypeObject.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool ContainsValidInstance() |
FoliageTypeObject.h | ||
const UFoliageType * GetInstance () |
Gets the instance of this foliage type. Creates the instance if needed. | FoliageTypeObject.h | |
const UFoliageType * GetInstance () |
Gets the instance of this foliage type. | FoliageTypeObject.h | |
bool HasFoliageType() |
FoliageTypeObject.h | ||
bool IsDirty() |
FoliageTypeObject.h | ||
void PostSerialize
(
const FArchive& Ar |
FoliageTypeObject.h | ||
void RefreshInstance () |
Refreshes the type instance based on the assigned object. | FoliageTypeObject.h | |
void SetClean() |
FoliageTypeObject.h |