Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UAnimInstance
Description
Runs through all layer nodes, attempting to find layer nodes that are implemented by the specified class, then sets up a linked instance of the class for each. Allocates one linked instance to run each of the groups specified in the class, so state is shared. If a layer is not grouped (ie. NAME_None), then state is not shared and a separate linked instance is allocated for each layer node. If InClass is null, then all layers are reset to their defaults.
| Name | LinkAnimClassLayers |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Animation/AnimInstance.h |
| Include Path | #include "Animation/AnimInstance.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Animation/AnimInstance.cpp |
UFUNCTION (BlueprintCallable, Category="Animation|Linked Anim Graphs")
virtual void LinkAnimClassLayers
(
TSubclassOf < UAnimInstance > InClass
)