Navigation
API > API/Runtime > API/Runtime/Constraints
A graph like structure to efficiently represent constraints' evaluation hierarchy using their tick dependencies. Each node stores the useful data to evaluate the constraint hierarchically.
| Name | FConstraintsEvaluationGraph |
| Type | struct |
| Header File | /Engine/Source/Runtime/Experimental/Animation/Constraints/Public/ConstraintsEvaluationGraph.h |
| Include Path | #include "ConstraintsEvaluationGraph.h" |
Syntax
struct FConstraintsEvaluationGraph : public TSharedFromThis< FConstraintsEvaluationGraph >
Inheritance Hierarchy
- FSharedFromThisBase → TSharedFromThis → FConstraintsEvaluationGraph
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FConstraintsEvaluationGraph
(
const FConstraintsInWorld* InConstraintsInWorld |
ConstraintsEvaluationGraph.h | ||
FConstraintsEvaluationGraph
(
FConstraintsEvaluationGraph&& InOther |
ConstraintsEvaluationGraph.h | ||
FConstraintsEvaluationGraph
(
const FConstraintsEvaluationGraph& InOther |
ConstraintsEvaluationGraph.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ConstraintsInWorld | const FConstraintsInWorld & | References to the actual stored data. | ConstraintsEvaluationGraph.h | |
| Nodes | TArray< FConstraintNode > | Array of constraint wrappers. | ConstraintsEvaluationGraph.h | |
| State | EGraphState | Current graph state. | ConstraintsEvaluationGraph.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void FlushPendingEvaluations() |
Evaluates constraints marked for evaluation + their dependencies. | ConstraintsEvaluationGraph.h | |
bool GetSortedConstraints
(
TArray< TWeakObjectPtr< UTickableConstraint > >& OutConstraints |
Get Sorted Constraints | ConstraintsEvaluationGraph.h | |
void InvalidateData() |
Invalidates internal data so that the graph will be rebuilt on request. | ConstraintsEvaluationGraph.h | |
bool IsPendingEvaluation() |
Should the graph be evaluated ? | ConstraintsEvaluationGraph.h | |
void MarkForEvaluation
(
const TWeakObjectPtr< UTickableConstraint >& InConstraint |
Marks the constraint for evaluation. | ConstraintsEvaluationGraph.h | |
void Rebuild() |
Rebuilds the full graph taking constraints tick dependencies into account. | ConstraintsEvaluationGraph.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static bool UseEvaluationGraph() |
ConstraintsEvaluationGraph.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FConstraintsEvaluationGraph & operator=
(
const FConstraintsEvaluationGraph& InOther |
ConstraintsEvaluationGraph.h |