14#include "AnimTypes.generated.h"
25#define ENABLE_ANIM_DEBUG (1 && !(UE_BUILD_SHIPPING || UE_BUILD_TEST))
27#define DEFAULT_SAMPLERATE 30.f
28#define MINIMUM_ANIMATION_LENGTH (1/DEFAULT_SAMPLERATE)
31#define ENABLE_VERBOSE_ANIM_PERF_TRACKING 0
33#define MAX_ANIMATION_TRACKS 65535
147 uint64 LastSyncronizedFrame;
267 return LastSyncronizedFrame >= (
GFrameCounter - SkipFrames) - 1;
280#if WITH_EDITORONLY_DATA
292 float EndTriggerTimeOffset;
295 float TriggerWeightThreshold;
315 bool bConvertedFromBranchingPoint;
322 float NotifyTriggerChance;
334 bool bCanBeFilteredViaRequest;
338 bool bTriggerOnDedicatedServer;
342 bool bTriggerOnFollower;
344#if WITH_EDITORONLY_DATA
368#if WITH_EDITORONLY_DATA
371 , TriggerTimeOffset(0)
372 , EndTriggerTimeOffset(0)
375 , NotifyStateClass(
nullptr)
377 , bConvertedFromBranchingPoint(
false)
379 , NotifyTriggerChance(1.f)
382 , bCanBeFilteredViaRequest(
true)
383 , bTriggerOnDedicatedServer(
true)
384 , bTriggerOnFollower(
false)
385#if WITH_EDITORONLY_DATA
398#if WITH_EDITORONLY_DATA
417 ENGINE_API void SetDuration(
float NewDuration);
425 return Notify !=
nullptr || NotifyStateClass !=
nullptr;
431 (Notify && Notify ==
Other.Notify) ||
432 (NotifyStateClass && NotifyStateClass ==
Other.NotifyStateClass) ||
449#if WITH_EDITORONLY_DATA
488#if WITH_EDITORONLY_DATA
501#if WITH_EDITORONLY_DATA
510#if WITH_EDITORONLY_DATA
519 return MarkerName ==
Other.MarkerName &&
520#if WITH_EDITORONLY_DATA
521 TrackIndex ==
Other.TrackIndex &&
528#if WITH_EDITORONLY_DATA
558 : TrackName(
TEXT(""))
650 UE_DEPRECATED(5.0, "Use
other GetMarkerSyncPositionFromMarkerIndicies signature")
653 void CollectUniqueNames();
730 return NumKeys > 0 ? (
float(NumKeys - 1) / Length) : 0.0f;
735 return (NumKeys > 1) ? NumKeys - 1 : 0;
776 case EAxisOption::X_Neg:
780 case EAxisOption::Y_Neg:
784 case EAxisOption::Z_Neg:
786 case EAxisOption::Custom:
871 T.PosKeys.BulkSerialize(Ar);
872 T.RotKeys.BulkSerialize(Ar);
876 T.ScaleKeys.BulkSerialize(Ar);
890 for (
const auto& Key : Keys)
892 if (Key.ContainsNaN())
948 return FVector(FloatKey);
963 return FQuat(FloatKey);
978 return FVector(FloatKey);
1039template <
typename ArrayType>
1053template <
typename ArrayType>
NotifyName
Definition AnimInstance.h:121
EAnimInterpolationType
Definition AnimTypes.h:689
EBoneControlSpace
Definition AnimTypes.h:60
@ BCS_MAX
Definition AnimTypes.h:69
#define MINIMUM_ANIMATION_LENGTH
Definition AnimTypes.h:28
EBoneAxis
Definition AnimTypes.h:50
ENGINE_API float GetTriggerTimeOffsetForType(EAnimEventTriggerOffsets::Type OffsetType)
Definition AnimTypes.cpp:15
EBoneRotationSource
Definition AnimTypes.h:75
EAdditiveAnimationType
Definition AnimTypes.h:575
@ UMETA
Definition AnimTypes.h:51
@ AAT_MAX
Definition AnimTypes.h:582
uint64 GFrameCounter
Definition CoreGlobals.cpp:418
@ INDEX_NONE
Definition CoreMiscDefines.h:150
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
bool operator<(const FTextFormatString &LHS, const FTextFormatString &RHS)
Definition ITextFormatArgumentModifier.h:147
UE::Math::TVector< float > FVector3f
Definition MathFwd.h:73
#define MAX_uint16
Definition NumericLimits.h:20
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define UPARAM(...)
Definition ObjectMacros.h:748
#define GENERATED_BODY(...)
Definition ObjectMacros.h:765
#define UFUNCTION(...)
Definition ObjectMacros.h:745
#define UCLASS(...)
Definition ObjectMacros.h:776
#define UENUM(...)
Definition ObjectMacros.h:749
#define USTRUCT(...)
Definition ObjectMacros.h:746
EPropertyObjectReferenceType
Definition ObjectMacros.h:533
#define GENERATED_USTRUCT_BODY(...)
Definition ObjectMacros.h:767
@ VER_UE4_ANIM_SUPPORT_NONUNIFORM_SCALE_ANIMATION
Definition ObjectVersion.h:359
USkinnedMeshComponent float
Definition SkinnedMeshComponent.h:60
#define UE_SMALL_NUMBER
Definition UnrealMathUtility.h:130
#define ZERO_ANIMWEIGHT_THRESH
Definition VectorRegister.h:133
Definition Archive.h:1208
virtual CORE_API void UsingCustomVersion(const struct FGuid &Guid)
Definition Archive.cpp:590
CORE_API int32 CustomVer(const struct FGuid &Key) const
Definition Archive.cpp:602
Definition AnimTypes.h:990
FName Name
Definition AnimTypes.h:1002
TArray< int32 > BonesToRoot
Definition AnimTypes.h:1008
bool bKeyEndEffector
Definition AnimTypes.h:1017
TArray< int32 > EndEffectors
Definition AnimTypes.h:1011
FVector3f Position
Definition AnimTypes.h:996
FVector3f Scale
Definition AnimTypes.h:999
int32 GetParent() const
Definition AnimTypes.h:1020
FQuat Orientation
Definition AnimTypes.h:993
int32 GetDepth() const
Definition AnimTypes.h:1026
bool IsEndEffector() const
Definition AnimTypes.h:1032
TArray< int32 > Children
Definition AnimTypes.h:1005
bool bHasSocket
Definition AnimTypes.h:1014
Definition MemoryReader.h:17
Definition MemoryWriter.h:101
Definition NameTypes.h:617
Definition SecureHash.h:314
CORE_API void Update(const uint8 *data, uint64 len)
Definition SecureHash.cpp:1205
CORE_API void GetHash(uint8 *puDest) const
Definition SecureHash.cpp:1269
CORE_API void Final()
Definition SecureHash.cpp:1245
UE_REWRITE SizeType Num() const
Definition Array.h:1144
Definition EnumAsByte.h:22
Definition MemStack.h:391
Definition AnimNotifyState.h:25
Definition AnimNotify.h:52
Definition BlueprintFunctionLibrary.h:16
Definition MirrorDataTable.h:102
Definition AnimTypes.h:935
void Transform(const InT &Input, OutT &&Output, TransformT Trans)
Definition Transform.h:66
Definition AnimTypes.h:36
Type
Definition AnimTypes.h:38
@ OffsetBefore
Definition AnimTypes.h:39
@ NoOffset
Definition AnimTypes.h:41
@ OffsetAfter
Definition AnimTypes.h:40
Type
Definition AnimLinkableElement.h:18
@ Absolute
Definition AnimLinkableElement.h:20
Definition AnimTypes.h:755
Definition AnimTypes.h:802
Type
Definition AnimTypes.h:804
Definition AnimTypes.h:587
Type
Definition AnimTypes.h:589
@ BlendByWeight
Definition AnimTypes.h:597
@ UseMaxValue
Definition AnimTypes.h:601
@ UseMinValue
Definition AnimTypes.h:603
@ UseBasePose
Definition AnimTypes.h:599
@ NormalizeByWeight
Definition AnimTypes.h:595
Definition AnimTypes.h:87
Type
Definition AnimTypes.h:89
@ BranchingPoint
Definition AnimTypes.h:93
@ Queued
Definition AnimTypes.h:91
Definition AnimTypes.h:100
Type
Definition AnimTypes.h:102
@ LOD
Definition AnimTypes.h:107
@ NoFiltering
Definition AnimTypes.h:104
FString ToString(uint16 Value)
Definition PathFollowingComponent.cpp:82
Definition AnimationAsset.h:38
constexpr UID_Type MaxUID
Definition AnimTypes.h:710
uint16 UID_Type
Definition AnimationAsset.h:39
Definition AnimTypes.h:716
int32 LastKey() const
Definition AnimTypes.h:733
float KeysPerSecond() const
Definition AnimTypes.h:728
float TimePerKey() const
Definition AnimTypes.h:722
FAnimKeyHelper(float InLength, int32 InNumKeys)
Definition AnimTypes.h:717
int32 GetNumKeys() const
Definition AnimTypes.h:743
float GetLength() const
Definition AnimTypes.h:738
Definition AnimLinkableElement.h:40
Definition AnimTypes.h:277
ENGINE_API float GetTriggerTime() const
Definition AnimTypes.cpp:81
virtual ~FAnimNotifyEvent()
Definition AnimTypes.h:394
ENGINE_API bool operator<(const FAnimNotifyEvent &Other) const
Definition AnimTypes.h:461
int32 TrackIndex
Definition AnimTypes.h:356
bool IsBlueprintNotify() const
Definition AnimTypes.h:423
Definition AnimTypes.h:544
FAnimNotifyTrack(FName InTrackName, FLinearColor InTrackColor)
Definition AnimTypes.h:563
Definition AnimTypes.h:482
Definition AnimTypes.h:664
static bool IsFullWeight(float InWeight)
Definition AnimTypes.h:672
static float GetSmallestRelevantWeight()
Definition AnimTypes.h:678
static bool IsRelevant(float InWeight)
Definition AnimTypes.h:666
Definition AnimTypes.h:769
static FVector GetAxisVector(const TEnumAsByte< EAxisOption::Type > InAxis)
Definition AnimTypes.h:793
static FVector GetAxisVector(const TEnumAsByte< EAxisOption::Type > InAxis, const FVector &CustomAxis)
Definition AnimTypes.h:770
static CORE_API const FColor Black
Definition Color.h:750
Definition AnimTypes.h:144
bool IsSynchronized_Frame(const FGraphTraversalCounter &InOtherCounter) const
Definition AnimTypes.h:222
int16 Get() const
Definition AnimTypes.h:164
bool IsSynchronized_All(const FGraphTraversalCounter &InOtherCounter) const
Definition AnimTypes.h:228
bool WasSynchronizedCounter(const FGraphTraversalCounter &InOtherCounter) const
Definition AnimTypes.h:234
FGraphTraversalCounter()
Definition AnimTypes.h:157
void Reset()
Definition AnimTypes.h:200
int16 GetMaxSkippedFrames() const
Definition AnimTypes.h:194
void Increment()
Definition AnimTypes.h:175
bool WasSynchronizedLastFrame(const FGraphTraversalCounter &InOtherCounter) const
Definition AnimTypes.h:258
bool IsSynchronized_Counter(const FGraphTraversalCounter &InOtherCounter) const
Definition AnimTypes.h:216
void SynchronizeWith(const FGraphTraversalCounter &InMasterCounter)
Definition AnimTypes.h:208
void SetMaxSkippedFrames(int16 InMaxSkippedFrames)
Definition AnimTypes.h:188
bool HasEverBeenUpdated() const
Definition AnimTypes.h:169
Definition AnimationAsset.h:56
Definition AnimationAsset.h:361
Definition AnimTypes.h:638
static UE_FORCEINLINE_HINT bool IsNearlyEqual(float A, float B, float ErrorTolerance=UE_SMALL_NUMBER)
Definition UnrealMathUtility.h:388
Definition AnimationAsset.h:400
Definition AnimTypes.h:113
Definition AnimTypes.h:132
Definition AnimTypes.h:853
bool ContainsNaN() const
Definition AnimTypes.h:882
bool Serialize(FArchive &Ar)
Definition AnimTypes.h:909
Definition AnimTypes.h:611
FSlotNodeWeightInfo()
Definition AnimTypes.h:622
void Reset()
Definition AnimTypes.h:628
float SourceWeight
Definition AnimTypes.h:614
float SlotNodeWeight
Definition AnimTypes.h:617
float TotalNodeWeight
Definition AnimTypes.h:620
Definition AnimTypes.h:822
FTrackToSkeletonMap(int32 InBoneTreeIndex)
Definition AnimTypes.h:835
int32 BoneTreeIndex
Definition AnimTypes.h:827
friend FArchive & operator<<(FArchive &Ar, FTrackToSkeletonMap &Item)
Definition AnimTypes.h:840
CORE_API static const FGuid GUID
Definition UE5ReleaseStreamObjectVersion.h:22
Definition ObjectPtr.h:488
Definition StructOpsTypeTraits.h:11
@ WithSerializer
Definition StructOpsTypeTraits.h:23
@ WithPostSerialize
Definition StructOpsTypeTraits.h:25
static constexpr EPropertyObjectReferenceType WithSerializerObjectReferences
Definition StructOpsTypeTraits.h:41
Definition StructOpsTypeTraits.h:46
static CORE_API const TVector< double > ForwardVector
Definition Vector.h:91
static CORE_API const TVector< double > UpVector
Definition Vector.h:85
static CORE_API const TVector< double > RightVector
Definition Vector.h:97