![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <CollectionHierarchyFacade.h>
Public Types | |
| enum class | EPersistencePolicy : uint8 { KeepExistingPersistence , MustBePersistent } |
Static Public Member Functions | |
| static CHAOS_API TArray< int32 > | GetRootIndices (const TManagedArrayAccessor< int32 > &ParentAttribute) |
Provides an API to read and manipulate hierarchy in a managed array collection
| Chaos::Facades::FCollectionHierarchyFacade::FCollectionHierarchyFacade | ( | FManagedArrayCollection & | InCollection | ) |
| Chaos::Facades::FCollectionHierarchyFacade::FCollectionHierarchyFacade | ( | const FManagedArrayCollection & | InCollection | ) |
| TArray< int32 > Chaos::Facades::FCollectionHierarchyFacade::ComputeTransformIndicesInBreadthFirstOrder | ( | ) | const |
compute transform indices in a breadth first order ( root to leaves )
| TArray< int32 > Chaos::Facades::FCollectionHierarchyFacade::ComputeTransformIndicesInDepthFirstOrder | ( | ) | const |
compute transform indices in a depth first order
|
inline |
Create the facade attributes.
| void Chaos::Facades::FCollectionHierarchyFacade::EnumerateChildTransforms | ( | int32 | TransformIndex, |
| TFunctionRef< bool(int32)> | ShouldProcess, | ||
| TFunctionRef< void(int32)> | ProcessTransformFunc | ||
| ) | const |
Enumerate transforms at or under TransformIndex where ShouldProcess returns true, stopping recursion and calling ProcessTransformFunc on such transforms.
| const TSet< int32 > * Chaos::Facades::FCollectionHierarchyFacade::FindChildren | ( | int32 | TransformIndex | ) | const |
Get set of children from a transform index, or nullptr if not available
| CHAOS_API void Chaos::Facades::FCollectionHierarchyFacade::GenerateBreadthFirstOrderIndicesAttribute | ( | ) |
generate a non serialize array that stores the indices of the transforms in a breath first order
| void Chaos::Facades::FCollectionHierarchyFacade::GenerateLevelAttribute | ( | ) |
Update level attribute for all elements (and create it if it is missing ) @Param PersistencePolicy whether to make the attribute persistent or keep the existing state
| CHAOS_API const TArray< int32 > & Chaos::Facades::FCollectionHierarchyFacade::GetBreadthFirstOrderIndicesFromAttribute | ( | ) | const |
get the breadth first ordered transform indices from the stored attribute if any may return empty array if the attribute does not exists
| TArray< int32 > Chaos::Facades::FCollectionHierarchyFacade::GetChildrenAsArray | ( | int32 | TransformIndex | ) | const |
Get direct children from a specific transform index. Assumes parent attribute is valid.
Get initial level of a specific transform index If the attribute is missing return INDEX_NONE
Get parent of a specific transform index
| int32 Chaos::Facades::FCollectionHierarchyFacade::GetRootIndex | ( | ) | const |
Get the root index
Get the root indicies
|
static |
Get the root indicies
| TArray< int32 > Chaos::Facades::FCollectionHierarchyFacade::GetTransformArrayInDepthFirstOrder | ( | ) | const |
Get transform indices in a depth first order
| bool Chaos::Facades::FCollectionHierarchyFacade::HasLevelAttribute | ( | ) | const |
whether the level attribute is available
|
inline |
Is this facade const access
| bool Chaos::Facades::FCollectionHierarchyFacade::IsLevelAttributePersistent | ( | ) | const |
whether the level attribute is persistent
| bool Chaos::Facades::FCollectionHierarchyFacade::IsValid | ( | ) | const |
Valid if parent and children arrays are available