![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <ISMComponentBatcher.h>
Classes | |
| struct | FComponentToInstancesMapping |
Protected Member Functions | |
| void ENGINE_API | AddInternal (const UActorComponent *InComponent, TOptional< TFunctionRef< FTransform(const FTransform &)> > InTransformFunc, TOptional< TFunctionRef< bool(const FBox &)> > InFilterFunc) |
| void ENGINE_API | ComputeHash () const |
Protected Attributes | |
| uint32 | Hash = 0 |
| int32 | NumInstances = 0 |
| int32 | NumCustomDataFloats = 0 |
| TArray< FTransform > | InstancesTransformsWS |
| TArray< float > | InstancesCustomData |
| int32 | InstancingRandomSeed = 0 |
| TArray< FInstancedStaticMeshRandomSeed > | AdditionalRandomSeeds |
| TArray< int32 > | AnimationIndices |
| bool | bBuildMappingInfo = false |
| TArray< FComponentToInstancesMapping > | ComponentsToInstancesMap |
Struct that allows batching of transforms and custom data of multiple (possibly instanced) static mesh components
|
inline |
|
inline |
| void FISMComponentBatcher::Add | ( | const UActorComponent * | InActorComponent | ) |
Add a single component to be batched
| InActorComponent | Component to be batched |
| void FISMComponentBatcher::Add | ( | const UActorComponent * | InActorComponent, |
| TFunctionRef< FTransform(const FTransform &)> | InTransformFunc | ||
| ) |
Add a single component to be batched
| InActorComponent | Component to be batched |
| InTransformFunc | Function that takes the world space transform of an instance and modifies it. Must return a world space transform. |
| void FISMComponentBatcher::Add | ( | const UActorComponent * | InComponent, |
| TFunctionRef< bool(const FBox &)> | InFilterFunc | ||
| ) |
Add a single component to be batched
| InActorComponent | Component to be batched |
| InFilterFunc | Function that can be used to filter out instances based on their world bounds. |
| void FISMComponentBatcher::Add | ( | const UActorComponent * | InComponent, |
| TFunctionRef< FTransform(const FTransform &)> | InTransformFunc, | ||
| TFunctionRef< bool(const FBox &)> | InFilterFunc | ||
| ) |
Add a single component to be batched
| InActorComponent | Component to be batched |
| InTransformFunc | Function that takes the world space transform of an instance and modifies it. Must return a world space transform. |
| InFilterFunc | Function that can be used to filter out instances based on their world bounds. |
|
protected |
|
inline |
Add an array of component to be batched
| InComponents | Components to be batched |
|
inline |
Add an array of components to be batched
| InComponents | Components to be batched |
| InFilterFunc | Function that can be used to filter out instances based on their world bounds. |
|
inline |
Add an array of components to be batched
| InComponents | Components to be batched |
| InTransformFunc | Function that takes the world space transform of an instance and modifies it. Must return a world space transform. |
|
inline |
Add an array of components to be batched
| InComponents | Components to be batched |
| InFilterFunc | Function that can be used to filter out instances based on their world bounds. |
| InTransformFunc | Function that takes the world space transform of an instance and modifies it. Must return a world space transform. |
|
protected |
| TArray< FISMComponentBatcher::FComponentToInstancesMapping > FISMComponentBatcher::GetComponentsToInstancesMap | ( | ) |
Retrieve the component to instances mapping. Will only be populated if bBuildMappingInfo=true is provided to the batcher's constructor.
|
inline |
|
inline |
Return the number of instances batched so far.
| void FISMComponentBatcher::InitComponent | ( | UInstancedSkinnedMeshComponent * | ISMComponent | ) | const |
Initialize the instances of the provided instanced skinned mesh component using the batched data stored in this class.
| ISMComponent | Instanced skinned mesh component which will be modified. |
| void FISMComponentBatcher::InitComponent | ( | UInstancedStaticMeshComponent * | ISMComponent | ) | const |
Initialize the instances of the provided instanced static mesh component using the batched data stored in this class.
| ISMComponent | Instanced static mesh component which will be modified. |
|
protected |
|
protected |
|
mutableprotected |
|
protected |
|
protected |
|
protected |
|
protected |