Navigation
API > API/Runtime > API/Runtime/GeometryCollectionEngine > API/Runtime/GeometryCollectionEngine/UGeometryCollectionBlueprintLibr-
Description
Specify custom depth and a value to write during the custom depth pass for all instances associated with a geometry collection. This assumes that the geometry collection is using a custom renderer that supports IGeometryCollectionCustomDataInterface.
| Name | SetCustomDepthStencil |
| 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 SetCustomDepthStencil
(
UGeometryCollectionComponent * GeometryCollectionComponent,
bool bEnable,
int32 CustomStencilValue
)
Parameters
| Name | Remarks |
|---|---|
| GeometryCollectionComponent | The Geometry Collection Component that we want to set custom depth data on. |
| bEnable | Enable or disable custom depth writing. |
| CustomStencilValue | The value which will be written to the stencil buffer during the custom depth pass if bEnable is true. |