Add Games File
This commit is contained in:
@@ -0,0 +1,54 @@
|
||||
// VRM4U Copyright (c) 2021-2024 Haruyoshi Yamamoto. This software is released under the MIT License.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "CoreMinimal.h"
|
||||
#include "UObject/ObjectMacros.h"
|
||||
#include "BoneContainer.h"
|
||||
#include "BonePose.h"
|
||||
#include "BoneControllers/AnimNode_ModifyBone.h"
|
||||
#include "Misc/EngineVersionComparison.h"
|
||||
|
||||
#include "AnimNode_VrmModifyBoneList.generated.h"
|
||||
|
||||
class USkeletalMeshComponent;
|
||||
class UVrmMetaObject;
|
||||
|
||||
/**
|
||||
* Simple controller that replaces or adds to the translation/rotation of a single bone.
|
||||
*/
|
||||
USTRUCT(BlueprintInternalUseOnly)
|
||||
struct VRM4U_API FAnimNode_VrmModifyBoneList : public FAnimNode_SkeletalControlBase
|
||||
{
|
||||
GENERATED_USTRUCT_BODY()
|
||||
|
||||
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = Skeleton, meta = (PinShownByDefault))
|
||||
TMap<FString, FTransform> BoneTrans;
|
||||
|
||||
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = Skeleton, meta = (PinHiddenByDefault))
|
||||
TArray<FString> UseInputTransBoneList;
|
||||
|
||||
FAnimNode_VrmModifyBoneList();
|
||||
|
||||
// FAnimNode_Base interface
|
||||
virtual void GatherDebugData(FNodeDebugData& DebugData) override;
|
||||
// End of FAnimNode_Base interface
|
||||
|
||||
// FAnimNode_SkeletalControlBase interface
|
||||
virtual void Initialize_AnyThread(const FAnimationInitializeContext& Context) override;
|
||||
virtual void CacheBones_AnyThread(const FAnimationCacheBonesContext& Context) override;
|
||||
// virtual void Update_AnyThread(const FAnimationUpdateContext& Context) override;
|
||||
virtual void EvaluateSkeletalControl_AnyThread(FComponentSpacePoseContext& Output, TArray<FBoneTransform>& OutBoneTransforms) override;
|
||||
virtual void EvaluateComponentPose_AnyThread(FComponentSpacePoseContext& Output) override;
|
||||
virtual bool IsValidToEvaluate(const USkeleton* Skeleton, const FBoneContainer& RequiredBones) override;
|
||||
|
||||
virtual void UpdateInternal(const FAnimationUpdateContext& Context)override;
|
||||
// End of FAnimNode_SkeletalControlBase interface
|
||||
|
||||
virtual void ConditionalDebugDraw(FPrimitiveDrawInterface* PDI, USkeletalMeshComponent* PreviewSkelMeshComp, bool bPreviewForeground = false) const;
|
||||
|
||||
private:
|
||||
// FAnimNode_SkeletalControlBase interface
|
||||
virtual void InitializeBoneReferences(const FBoneContainer& RequiredBones) override;
|
||||
// End of FAnimNode_SkeletalControlBase interface
|
||||
};
|
||||
Reference in New Issue
Block a user