![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <GeometryCollectionISMPoolComponent.h>
Public Types | |
| using | FMeshId = int32 |
Public Member Functions | |
| FMeshId | AddMesh (const FGeometryCollectionStaticMeshInstance &MeshInstance, int32 InstanceCount, const FGeometryCollectionMeshInfo &ISMInstanceInfo, TArrayView< const float > CustomDataFloats) |
| bool | BatchUpdateInstancesTransforms (FGeometryCollectionISMPool &ISMPool, FMeshId MeshId, int32 StartInstanceIndex, TArrayView< const FTransform > NewInstancesTransforms, bool bWorldSpace, bool bMarkRenderStateDirty, bool bTeleport) |
| void | BatchUpdateInstanceCustomData (FGeometryCollectionISMPool &ISMPool, int32 CustomFloatIndex, float CustomFloatValue) |
| void | RemoveAllMeshes (FGeometryCollectionISMPool &ISMPool) |
Public Attributes | |
| TArray< FGeometryCollectionMeshInfo > | MeshInfos |
| bool | bAllowPerInstanceRemoval = false |
A mesh group which is a collection of meshes and their related FGeometryCollectionMeshInfo. We group these with a single handle with the expectation that a client will want to own multiple meshs and release them together.
| FGeometryCollectionMeshGroup::FMeshId FGeometryCollectionMeshGroup::AddMesh | ( | const FGeometryCollectionStaticMeshInstance & | MeshInstance, |
| int32 | InstanceCount, | ||
| const FGeometryCollectionMeshInfo & | ISMInstanceInfo, | ||
| TArrayView< const float > | CustomDataFloats | ||
| ) |
Adds a new mesh with instance count. We expect to only add a unique mesh instance once to each group. Returns a ID that can be used to update the instances.
| void FGeometryCollectionMeshGroup::BatchUpdateInstanceCustomData | ( | FGeometryCollectionISMPool & | ISMPool, |
| int32 | CustomFloatIndex, | ||
| float | CustomFloatValue | ||
| ) |
| bool FGeometryCollectionMeshGroup::BatchUpdateInstancesTransforms | ( | FGeometryCollectionISMPool & | ISMPool, |
| FMeshId | MeshId, | ||
| int32 | StartInstanceIndex, | ||
| TArrayView< const FTransform > | NewInstancesTransforms, | ||
| bool | bWorldSpace, | ||
| bool | bMarkRenderStateDirty, | ||
| bool | bTeleport | ||
| ) |
Update instance transforms for a group of instances.
| void FGeometryCollectionMeshGroup::RemoveAllMeshes | ( | FGeometryCollectionISMPool & | ISMPool | ) |
Remove all of our managed meshes and associated instances.
Flag for whether we allow removal of instances when transform scale is set to zero.
| TArray<FGeometryCollectionMeshInfo> FGeometryCollectionMeshGroup::MeshInfos |
Array of allocated mesh infos.