Navigation
API > API/Runtime > API/Runtime/Constraints
FConstraintsInteractionCache is designed to minimize the number of requests made to the ConstraintManager and thus improve performance. it is particularly useful for interface components that need to be updated frequently. note that PerHandleConstraints is reset when the constraint graph is updated, to keep it synchronized.
| Name | FConstraintsInteractionCache |
| Type | struct |
| Header File | /Engine/Source/Runtime/Experimental/Animation/Constraints/Public/Transform/TransformConstraintUtil.h |
| Include Path | #include "Transform/TransformConstraintUtil.h" |
Syntax
struct FConstraintsInteractionCache
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ConstraintsNotificationHandle | FDelegateHandle | Transform/TransformConstraintUtil.h | ||
| PerHandleConstraints | TMap< uint32, TArray< TWeakObjectPtr< UTickableConstraint > > > | Transform/TransformConstraintUtil.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
const TArray< TWeakObjectPtr< UTickableConstraint > > & Get
(
const UObject* InObject, |
Transform/TransformConstraintUtil.h | ||
const TArray< TWeakObjectPtr< UTickableConstraint > > & Get
(
const uint32 InHandleHash, |
Transform/TransformConstraintUtil.h | ||
TOptional< FTransform > GetParentTransform
(
const UObject* InObject, |
Transform/TransformConstraintUtil.h | ||
TOptional< FTransform > GetParentTransform
(
const uint32 InHandleHash, |
Transform/TransformConstraintUtil.h | ||
bool HasAnyActiveConstraint
(
const UObject* InObject, |
Transform/TransformConstraintUtil.h | ||
bool HasAnyActiveConstraint
(
const uint32 InHandleHash, |
Transform/TransformConstraintUtil.h | ||
void RegisterNotifications
(
UWorld* InWorld |
Transform/TransformConstraintUtil.h | ||
void Reset() |
Transform/TransformConstraintUtil.h | ||
void UnregisterNotifications
(
UWorld* InWorld |
Transform/TransformConstraintUtil.h |