UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
ClothingAssetBase.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "UObject/Object.h"
6#include "Misc/Guid.h"
7#include "ClothingAssetBase.generated.h"
8
9class USkeletalMesh;
10
11#define UE_API CLOTHINGSYSTEMRUNTIMEINTERFACE_API
12
14
19UCLASS(Abstract, MinimalAPI)
21{
23
24public:
25
26#if WITH_EDITOR
34 PURE_VIRTUAL(UClothingAssetBase::BindToSkeletalMesh, return false;);
35
41 PURE_VIRTUAL(UClothingAssetBase::UnbindFromSkeletalMesh, );
42
49 PURE_VIRTUAL(UClothingAssetBase::UnbindFromSkeletalMesh,);
50
56 PURE_VIRTUAL(UClothingAssetBase::UpdateAllLODBiasMappings,);
57
59 UE_DEPRECATED(5.7, "Use UClothingAssetCommon::AddNewLod() instead.")
60 virtual int32 AddNewLod()
61 {
62 return INDEX_NONE;
63 }
64
70 UE_DEPRECATED(5.7, "Use UClothingAssetCommon::BuildLodTransitionData() instead.")
71 virtual void BuildLodTransitionData() {}
72#endif
73
74#if WITH_EDITORONLY_DATA
79 UE_DEPRECATED(5.7, "Use UClothingAssetCommon::InvalidateAllCachedData() instead.")
80 virtual void InvalidateAllCachedData() {}
81#endif // WITH_EDITORONLY_DATA
82
89 virtual void RefreshBoneMapping(USkeletalMesh* InSkelMesh)
90 PURE_VIRTUAL(UClothingAssetBase::RefreshBoneMapping, );
91
93 virtual bool IsValid() const
94 {
95 return true;
96 }
97
99 UE_DEPRECATED(5.7, "Use UClothingAssetCommon::IsValidLod() instead.")
100 virtual bool IsValidLod(int32 InLodIndex) const
101 {
102 return false;
103 }
104
106 UE_DEPRECATED(5.7, "Use UClothingAssetCommon::GetNumLods() instead.")
107 virtual int32 GetNumLods() const
108 {
109 return 0;
110 }
111
113 virtual void PostUpdateAllAssets()
114 PURE_VIRTUAL(UClothingAssetBase::PostUpdateAllAssets(), );
115
117 const FGuid& GetAssetGuid() const
118 {
119 return AssetGuid;
120 }
121
122#if WITH_EDITORONLY_DATA
123 UE_DEPRECATED(5.6, "This is an old Apex file path which is no longer used and will be removed.")
124 UPROPERTY()
125 FString ImportedFilePath;
126#endif
127
128protected:
129
131 friend class UClothingAssetFactory;
132
133#if WITH_EDITOR
135 static UE_API void WarningNotification(const FText& Text);
136#endif
137
139 UPROPERTY()
140 FGuid AssetGuid;
141};
142
143#undef UE_API
#define UE_API
Definition ClothingAssetBase.h:11
@ INDEX_NONE
Definition CoreMiscDefines.h:150
#define PURE_VIRTUAL(func,...)
Definition CoreMiscDefines.h:103
#define UE_DEPRECATED(Version, Message)
Definition CoreMiscDefines.h:302
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define DECLARE_LOG_CATEGORY_EXTERN(CategoryName, DefaultVerbosity, CompileTimeVerbosity)
Definition LogMacros.h:361
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define GENERATED_BODY(...)
Definition ObjectMacros.h:765
#define UCLASS(...)
Definition ObjectMacros.h:776
Definition Text.h:385
Definition ClothingAssetBase.h:21
virtual void virtual RefreshBoneMapping(USkeletalMesh *InSkelMesh) PURE_VIRTUAL(UClothingAssetBase boo IsValid)() const
Definition ClothingAssetBase.h:93
Definition Object.h:95
Definition SkeletalMesh.h:440
Definition Guid.h:109