Navigation
API > API/Runtime > API/Runtime/Chaos > API/Runtime/Chaos/GeometryCollection > API/Runtime/Chaos/GeometryCollection/Facades
References
| Module | Chaos |
| Header | /Engine/Source/Runtime/Experimental/Chaos/Public/GeometryCollection/Facades/CollectionHierarchyFacade.h |
| Include | #include "GeometryCollection/Facades/CollectionHierarchyFacade.h" |
Syntax
class FCollectionHierarchyFacade
Remarks
Provides an API to read and manipulate hierarchy in a managed array collection
Constructors
| Type | Name | Description | |
|---|---|---|---|
FCollectionHierarchyFacade
(
FManagedArrayCollection& InCollection |
|||
FCollectionHierarchyFacade
(
const FManagedArrayCollection& InCollection |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | DefineSchema () |
Create the facade attributes. | |
| const TSet< int32 > * | FindChildren
(
int32 TransformIndex |
Get set of children from a transform index, or nullptr if not available | |
| void | Update level attribute for all elements (and create it if it is missing ) PersistencePolicy whether to make the attribute persistent or keep the existing state | ||
| TArray< int32 > | GetChildrenAsArray
(
int32 TransformIndex |
Get direct children from a specific transform index. Assumes parent attribute is valid. | |
| int32 | GetInitialLevel
(
int32 TransformIndex |
Get initial level of a specific transform index If the attribute is missing return INDEX_NONE | |
| int32 | GetParent
(
int32 TransformIndex |
Get parent of a specific transform index | |
| int32 | GetRootIndex () |
Get the root index | |
| TArray< int32 > | Get the root indicies | ||
| TArray< int32 > | GetRootIndices
(
const TManagedArrayAccessor< int32 >& ParentAttribute |
Get the root indicies | |
| TArray< int32 > | Get transform indices in a depth first order | ||
| bool | Whether the level attribute is available | ||
| bool | IsConst () |
Is this facade const access | |
| bool | Whether the level attribute is persistent | ||
| bool | IsValid () |
Valid if parent and children arrays are available |
Enums
| Type | Name | Description | |
|---|---|---|---|
| EPersistencePolicy |