Navigation
API > API/Runtime > API/Runtime/GeometryCollectionEngine
Provides an API for decay related attributes ( use for remove on break and remove on sleep )
| Name | FGeometryCollectionDecayDynamicFacade |
| Type | class |
| Header File | /Engine/Source/Runtime/Experimental/GeometryCollectionEngine/Public/GeometryCollection/GeometryCollectionEngineRemoval.h |
| Include Path | #include "GeometryCollection/GeometryCollectionEngineRemoval.h" |
Syntax
class FGeometryCollectionDecayDynamicFacade
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FGeometryCollectionDecayDynamicFacade
(
FManagedArrayCollection& InCollection |
GeometryCollection/GeometryCollectionEngineRemoval.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| DecayAttribute | TManagedArrayAccessor< float > | State of decay ([0-1] range) | GeometryCollection/GeometryCollectionEngineRemoval.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddAttributes() |
Add the necessary attributes if they are missing and initialize them if necessary | GeometryCollection/GeometryCollectionEngineRemoval.h | |
float GetDecay
(
int32 TransformIndex |
Get decay value for a specific transform index | GeometryCollection/GeometryCollectionEngineRemoval.h | |
int32 GetDecayAttributeSize() |
Get the size of the decay attribute - this should match the number of transforms of the collection | GeometryCollection/GeometryCollectionEngineRemoval.h | |
bool IsValid() |
Returns true if all the necessary attributes are present if not then the API can be used to create | GeometryCollection/GeometryCollectionEngineRemoval.h | |
void SetDecay
(
int32 TransformIndex, |
Set decay value for a specific transform index | GeometryCollection/GeometryCollectionEngineRemoval.h |