UContextualAnimUtilities

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

ContextualAnimation

Header

/Engine/Plugins/Experimental/Animation/ContextualAnimation/Source/ContextualAnimation/Public/ContextualAnimUtilities.h

Include

#include "ContextualAnimUtilities.h"

Syntax

UCLASS()
class UContextualAnimUtilities : public UBlueprintFunctionLibrary

Functions

Name Description

Public function Static

float

 

BP_Montage_GetSectionLength

(
    const UAnimMontage* Montage,
    int32 SectionIndex
)

Public function Static UFunction BlueprintCallable, Category, Meta

void

 

BP_Montage_GetSectionStartAndEndTime

(
    const UAnimMontage* Montage,
    int32 SectionIndex,
    float& OutStartTime,
    float& OutEndTime
)

Public function Static UFunction BlueprintCallable, Category, Meta

float

 

BP_Montage_GetSectionTimeLeftFromPos

(
    const UAnimMontage* Montage,
    float Position
)

Public function Static

void

 

DrawDebugPose

(
    const UWorld* World,
    const UAnimSequenceBase* Anima...,
    float Time,
    const FTransform& LocalToWorldTran...,
    const FColor& Color,
    float LifeTime,
    float Thickness
)

Public function Static

void

 

DrawDebugScene

(
    const UWorld* World,
    const UContextualAnimSceneAsset...,
    int32 AnimDataIndex,
    float Time,
    const FTransform& ToWorldTransform,
    const FColor& Color,
    float LifeTime,
    float Thickness
)

Public function Static

void

 

ExtractComponentSpacePose

(
    const UAnimSequenceBase* Anima...,
    const FBoneContainer& BoneContaine...,
    float Time,
    bool bExtractRootMotion,
    FCSPose< FCompactPose >& OutPose
)

Helper function to extract component space pose from an animation at a given time If the supplied animation is a montage it will extract the pose from the first track IMPORTANT: This function expects you to add a MemMark (FMemMark Mark(FMemStack::Get());) at the correct scope if you are using it from outside world's tick

Public function Static

void

 

ExtractLocalSpacePose

(
    const UAnimSequenceBase* Anima...,
    const FBoneContainer& BoneContaine...,
    float Time,
    bool bExtractRootMotion,
    FCompactPose& OutPose
)

Helper function to extract local space pose from an animation at a given time.

Public function Static

FTransform

 

ExtractRootMotionFromAnimation

(
    const UAnimSequenceBase* Anima...,
    float StartTime,
    float EndTime
)

Extract Root Motion transform from a contiguous position range

Public function Static

FTransform

 

ExtractRootTransformFromAnimation

(
    const UAnimSequenceBase* Anima...,
    float Time
)

Extract root bone transform at a given time

Public function Static

UAnimInstanc...

 

TryGetAnimInstance

(
    AActor* Actor
)

Public function Static

USkeletalMes...

 

TryGetSkeletalMeshComponent

(
    AActor* Actor
)