Navigation
API > API/Runtime > API/Runtime/GeometryCollectionEngine > API/Runtime/GeometryCollectionEngine/GeometryCollection > API/Runtime/GeometryCollectionEngine/GeometryCollection/UGeometryCollect-
References
| Module | GeometryCollectionEngine |
| Header | /Engine/Source/Runtime/Experimental/GeometryCollectionEngine/Public/GeometryCollection/GeometryCollectionBlueprintLibrary.h |
| Include | #include "GeometryCollection/GeometryCollectionBlueprintLibrary.h" |
| Source | /Engine/Source/Runtime/Experimental/GeometryCollectionEngine/Private/GeometryCollection/GeometryCollectionBlueprintLibrary.cpp |
UFUNCTION (BlueprintCallable, Category="ChaosPhysics")
static void SetCustomInstanceDataByName
(
UGeometryCollectionComponent * GeometryCollectionComponent,
FName CustomDataName,
float CustomDataValue
)
Remarks
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.
Parameters
| Name | Description |
|---|---|
| GeometryCollectionComponent | The Geometry Collection Component that we want to set custom instance data on. |
| CustomDataName | The name of the custom instance data slot that we want to set. |
| CustomDataValue | The value to set to the custom instance data slot. |