Navigation
API > API/Runtime > API/Runtime/GeometryCollectionEngine > API/Runtime/GeometryCollectionEngine/UGeometryCollectionBlueprintLibr-
Description
Set a custom instance data value for all instances associated with a geometry collection. This assumes that the geometry collection is using a custom renderer that supports IGeometryCollectionCustomDataInterface.
| Name | SetCustomInstanceDataByIndex |
| Type | function |
| Header File | /Engine/Source/Runtime/Experimental/GeometryCollectionEngine/Public/GeometryCollection/GeometryCollectionBlueprintLibrary.h |
| Include Path | #include "GeometryCollection/GeometryCollectionBlueprintLibrary.h" |
| Source | /Engine/Source/Runtime/Experimental/GeometryCollectionEngine/Private/GeometryCollection/GeometryCollectionBlueprintLibrary.cpp |
UFUNCTION (BlueprintCallable, Category="ChaosPhysics")
static void SetCustomInstanceDataByIndex
(
UGeometryCollectionComponent * GeometryCollectionComponent,
int32 CustomDataIndex,
float CustomDataValue
)
Parameters
| Name | Remarks |
|---|---|
| GeometryCollectionComponent | The Geometry Collection Component that we want to set custom instance data on. |
| CustomDataIndex | The index of the custom instance data slot that we want to set. |
| CustomDataValue | The value to set to the custom instance data slot. |