Navigation
API > API/Runtime > API/Runtime/Foliage
References
| Module | Foliage |
| Header | /Engine/Source/Runtime/Foliage/Public/InstancedFoliage.h |
| Include | #include "InstancedFoliage.h" |
Syntax
struct FFoliageInfo
Remarks
Variables
| Type | Name | Description | |
|---|---|---|---|
| TMap< FFoliageInstanceBaseId, TSet< int32 > > | ComponentHash | Transient, editor-only set of instances per component. | |
| FGuid | FoliageTypeUpdateGuid | Allows us to detect if FoliageType was updated while this level wasn't loaded. | |
| AInstancedFoliageActor * | IFA | Owning IFA. | |
| TUniquePtr< FFoliageImpl > | Implementation | ||
| TUniquePtr< FFoliageInstanceHash > | InstanceHash | Transient, editor-only locality hash of instances. | |
| TArray< FFoliageInstance > | Instances | Editor-only placed instances. | |
| TSet< int32 > | MovingInstances | Moving instances. | |
| TSet< int32 > | SelectedIndices | Transient, editor-only list of selected instances. | |
| EFoliageImplType | Type |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FFoliageInfo () |
|||
FFoliageInfo
(
FFoliageInfo&& Other |
|||
FFoliageInfo
(
const FFoliageInfo& |
Non-copyable. |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddInstance
(
const UFoliageType* InSettings, |
||
| void | AddInstance
(
const UFoliageType* InSettings, |
||
| void | AddInstances
(
const UFoliageType* InSettings, |
||
| void | AddReferencedObjects
(
UObject* InThis, |
||
| void | AddToBaseHash
(
int32 InstanceIdx |
||
| bool | CheckForOverlappingInstanceExcluding
(
int32 TestInstanceIdx, |
||
| bool | CheckForOverlappingSphere
(
const FSphere& Sphere |
||
| void | CheckValid () |
For debugging. Validate state after editing. | |
| void | |||
| void | CreateImplementation
(
const UFoliageType* FoliageType |
||
| void | CreateImplementation
(
EFoliageImplType InType |
||
| void | DuplicateInstances
(
UFoliageType* InSettings, |
||
| void | |||
| void | |||
| void | ExitEditMode () |
||
| void | ForEachSMInstance
(
int32 InstanceIndex, |
||
| void | ForEachSMInstance
(
TFunctionRef< bool(FSMInstanceId)> Callback |
||
| FBox | |||
| UHierarchicalInstancedStaticMeshComponent * | GetComponent () |
Will only return a valid component in the case of non-actor foliage. | |
| EFoliageImplType | GetImplementationType
(
const UFoliageType* FoliageType |
||
| void | GetInstanceAtLocation
(
const FVector& Location, |
||
| void | GetInstancesInsideBounds
(
const FBox& Box, |
||
| void | GetInstancesInsideSphere
(
const FSphere& Sphere, |
||
| TArray< int32 > | GetInstancesOverlappingBox
(
const FBox& Box |
||
| int32 | GetOverlappingBoxCount
(
const FBox& Box |
||
| void | GetOverlappingBoxTransforms
(
const FBox& Box, |
||
| void | GetOverlappingMeshCount
(
const FSphere& Sphere, |
||
| int32 | GetOverlappingSphereCount
(
const FSphere& Sphere |
||
| int32 | Get the number of placed instances. | ||
| FBox | |||
| void |
IncludeActor
(
const UFoliageType* FoliageType, |
||
| void | Initialize
(
const UFoliageType* FoliageType |
||
| bool | |||
| void | MoveInstances
(
AInstancedFoliageActor* InToIFA, |
||
| void | NotifyFoliageTypeChanged
(
UFoliageType* FoliageType, |
||
| void | NotifyFoliageTypeWillChange
(
UFoliageType* FoliageType |
||
| void | OnHiddenEditorViewMaskChanged
(
uint64 InHiddenEditorViews |
||
| void | PostEditUndo
(
UFoliageType* FoliageType |
||
| void | PostLoad () |
||
| void | PostMoveInstances
(
TArrayView< const int32 > InInstancesMoved, |
||
| void | PostSerialize
(
FArchive& Ar |
||
| void | PostUpdateInstances
(
TArrayView< const int32 >, |
||
| void | PreEditUndo
(
UFoliageType* FoliageType |
||
| void | PreMoveInstances
(
TArrayView< const int32 > InInstancesMoved |
Apply changes in the FoliageType to the component. | |
| void | ReallocateClusters
(
UFoliageType* InSettings |
Destroy existing clusters and reassign all instances to new clusters. | |
| void | |||
| void | Refresh
(
bool Async, |
||
| void | |||
| void | RemoveFromBaseHash
(
int32 InstanceIdx |
||
| void | RemoveInstances
(
TArrayView< const int32 > InInstancesToRemove, |
||
| void | ReserveAdditionalInstances
(
const UFoliageType* InSettings, |
||
| void | SelectInstances
(
bool bSelect |
||
| void | SelectInstances
(
bool bSelect, |
||
| void | SetInstanceWorldTransform
(
int32 InstanceIndex, |
||
| void | SetRandomSeed
(
int32 seed |
||
| bool | |||
| void | Uninitialize () |
Operators
| Type | Name | Description | |
|---|---|---|---|
| FFoliageInfo & | operator=
(
const FFoliageInfo& |
||
| FFoliageInfo & | operator=
(
FFoliageInfo&& Other |
Typedefs
| Name | Description |
|---|---|
| FAddImplementationFunc | |
| FRemoveImplementationFunc |