UnrealVoxta 0.1.1
 
Loading...
Searching...
No Matches
AnimNode_ApplyCustomCurves.h
Go to the documentation of this file.
1// Copyright(c) 2024 grrimgrriefer & DZnnah, see LICENSE for details.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "Animation/AnimNodeBase.h"
7#include "AnimNode_ApplyCustomCurves.generated.h"
8
10
16USTRUCT(BlueprintInternalUseOnly, Category = "Voxta")
17struct VOXTAUTILITY_A2F_API FAnimNode_ApplyCustomCurves : public FAnimNode_Base
18{
19 GENERATED_BODY()
20
21#pragma region FAnimNode_Base overrides
22public:
30 virtual void Update_AnyThread(const FAnimationUpdateContext& Context) override;
31
39 virtual void Evaluate_AnyThread(FPoseContext& Output) override;
40
47 virtual void GatherDebugData(FNodeDebugData& DebugData) override;
48
54 virtual bool HasPreUpdate() const override { return true; }
55
62 virtual void PreUpdate(const UAnimInstance* AnimInstance) override;
63#pragma endregion
64
65#pragma region data
66private:
67 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Voxta", meta = (AllowPrivateAccess = "true", DisplayName = "Source"))
68 FPoseLink m_source;
69
70 IA2FWeightProvider* m_curveSource = nullptr;
71 TArray<float> m_cachedWeights = TArray<float>();
72#pragma endregion
73};
IA2FWeightProvider The interface implemented by whoever can provide the A2F curves for any given upda...
Definition AbstractA2FWeightProvider.h:25
FAnimNode_ApplyCustomCurves Animation node that applies custom curve values to a pose.
Definition AnimNode_ApplyCustomCurves.h:18
virtual bool HasPreUpdate() const override
Indicates that PreUpdate() should be called on the game thread before Update().
Definition AnimNode_ApplyCustomCurves.h:54
virtual void Update_AnyThread(const FAnimationUpdateContext &Context) override
Update the state of the graph relative to this node.
Definition AnimNode_ApplyCustomCurves.cpp:11
virtual void Evaluate_AnyThread(FPoseContext &Output) override
Evaluate local-space bone transforms according to the weights set up in Update().
Definition AnimNode_ApplyCustomCurves.cpp:57
virtual void GatherDebugData(FNodeDebugData &DebugData) override
Gather on-screen debug data.
Definition AnimNode_ApplyCustomCurves.cpp:76