UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
AnimBoneCompressionSettings.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "AnimBoneCompressionSettings.generated.h"
7
10
11#if WITH_EDITORONLY_DATA
14namespace UE::Anim::Compression { struct FAnimDDCKeyArgs; }
15#endif // WITH_EDITORONLY_DATA
16
17/*
18 * This object is used to wrap a bone compression codec. It allows a clean integration in the editor by avoiding the need
19 * to create asset types and factory wrappers for every codec.
20 */
21UCLASS(hidecategories = Object, MinimalAPI)
23{
25
26
27 UPROPERTY(Category = Compression, Instanced, EditAnywhere, meta = (NoElementDuplicate))
29
30#if WITH_EDITORONLY_DATA
32 UPROPERTY(Category = Compression, EditAnywhere, meta = (ClampMin = "0"))
33 float ErrorThreshold;
34
36 UPROPERTY(Category = Compression, EditAnywhere)
37 bool bForceBelowThreshold;
38#endif
39
41 ENGINE_API UAnimBoneCompressionCodec* GetCodec(const FString& DDCHandle);
42
44
45#if WITH_EDITORONLY_DATA
46 // UObject overrides
47 ENGINE_API virtual void GetPreloadDependencies(TArray<UObject*>& OutDeps) override;
48
50 ENGINE_API bool AreSettingsValid() const;
51
54
55 /*
56 * Compresses the animation bones inside the supplied sequence.
57 * The resultant compressed data is applied to the OutCompressedData structure.
58 */
60
62 ENGINE_API void PopulateDDCKey(const UE::Anim::Compression::FAnimDDCKeyArgs& KeyArgs, FArchive& Ar);
63
65 UE_DEPRECATED(5.2, "This function has been deprecated. Override the one above instead.")
67
69 UE_DEPRECATED(5.1, "This function has been deprecated. Override the one above instead.")
71#endif
72};
#define UE_DEPRECATED(Version, Message)
Definition CoreMiscDefines.h:302
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define GENERATED_UCLASS_BODY(...)
Definition ObjectMacros.h:768
#define UCLASS(...)
Definition ObjectMacros.h:776
Definition Archive.h:1208
Definition Array.h:670
Definition AnimBoneCompressionCodec.h:27
Definition AnimBoneCompressionSettings.h:23
Definition AnimSequenceBase.h:37
Definition Object.h:95
Definition AnimSequence.h:43
Definition AnimCompressionTypes.h:462