UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
DatasmithCloth.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2#pragma once
3
4#include "Containers/Array.h"
6#include "CoreMinimal.h"
8#include "Math/Vector.h"
9#include "Math/Vector2D.h"
10#include "Misc/TVariant.h"
11#include "UObject/NameTypes.h"
12#include "DatasmithCloth.generated.h"
13
14#define UE_API DATASMITHCORE_API
15
16class FDatasmithMesh;
17class UActorComponent;
18
19
20struct UE_DEPRECATED(5.5, "The experimental Cloth importer is no longer supported.") FParameterData
21{
22 FString Name;
23
24 enum class ETarget { Vertex };
25 ETarget Target = ETarget::Vertex; // (also drives the expected number of values)
26
28
29public:
30 friend FArchive& operator<<(FArchive& Ar, FParameterData& ParameterData);
31};
32
33
34class UE_DEPRECATED(5.5, "The experimental Cloth importer is no longer supported.") DATASMITHCORE_API FDatasmithClothPattern
35{
36public:
40
42 TArray<FParameterData> Parameters;
44
45public:
46 bool IsValid() const { return SimRestPosition.Num() == SimPosition.Num() && SimTriangleIndices.Num() % 3 == 0 && SimTriangleIndices.Num(); }
48};
49
50
51struct UE_DEPRECATED(5.5, "The experimental Cloth importer is no longer supported.") FDatasmithClothSewingInfo
52{
57
59};
60
61
62class UE_DEPRECATED(5.5, "The experimental Cloth importer is no longer supported.") FDatasmithClothPresetProperty
63{
64public:
65 FName Name;
66 double Value;
67
68public:
70};
71
72
73class UE_DEPRECATED(5.5, "The experimental Cloth importer is no longer supported.") DATASMITHCORE_API FDatasmithClothPresetPropertySet
74{
75public:
76 FString SetName;
80
81public:
83};
84
85
86class UE_DEPRECATED(5.5, "The experimental Cloth importer is no longer supported.") DATASMITHCORE_API FDatasmithCloth
87{
88public:
94
95public:
97};
98
99
101UCLASS(MinimalAPI, Abstract)
103{
105
106public:
107 UE_DEPRECATED(5.5, "The experimental Cloth importer is no longer supported.")
109 UE_DEPRECATED(5.5, "The experimental Cloth importer is no longer supported.")
111
112 UE_DEPRECATED(5.5, "The experimental Cloth importer is no longer supported.")
113 virtual UObject* CreateClothAsset(UObject* Outer, const FName& Name, EObjectFlags Flags) const
114 PURE_VIRTUAL(UDatasmithClothAssetFactory::CreateClothAsset, return nullptr;);
115
116 UE_DEPRECATED(5.5, "The experimental Cloth importer is no longer supported.")
117 virtual UObject* DuplicateClothAsset(UObject* ClothAsset, UObject* Outer, const FName& Name) const
118 PURE_VIRTUAL(UDatasmithClothAssetFactory::DuplicateClothAsset, return nullptr;);
119
121 UE_DEPRECATED(5.5, "The experimental Cloth importer is no longer supported.")
125};
126
127
129UCLASS(MinimalAPI, Abstract)
131{
133
134public:
135 UE_DEPRECATED(5.5, "The experimental Cloth importer is no longer supported.")
137 UE_DEPRECATED(5.5, "The experimental Cloth importer is no longer supported.")
139
140 UE_DEPRECATED(5.5, "The experimental Cloth importer is no longer supported.")
141 virtual USceneComponent* CreateClothComponent(UObject* Outer) const
142 PURE_VIRTUAL(UDatasmithClothComponentFactory::CreateClothComponent, return nullptr;);
143
144 UE_DEPRECATED(5.5, "The experimental Cloth importer is no longer supported.")
145 virtual void InitializeClothComponent(USceneComponent* ClothComponent, UObject* ClothAsset, USceneComponent* RootComponent) const
147};
148
149
152{
153public:
154 inline static const FName FeatureName = TEXT("IDatasmithClothFactoryClassesProvider");
155
157 virtual ~IDatasmithClothFactoryClassesProvider() = default;
158
159 virtual FName GetName() const = 0;
160
163};
164
165#undef UE_API
#define PURE_VIRTUAL(func,...)
Definition CoreMiscDefines.h:103
#define UE_DEPRECATED(Version, Message)
Definition CoreMiscDefines.h:302
#define TEXT(x)
Definition Platform.h:1272
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
FArchive & operator<<(FArchive &Ar, FEnvQueryDebugProfileData::FStep &Data)
Definition EnvQueryTypes.cpp:489
#define PRAGMA_ENABLE_DEPRECATION_WARNINGS
Definition GenericPlatformCompilerPreSetup.h:12
#define PRAGMA_DISABLE_DEPRECATION_WARNINGS
Definition GenericPlatformCompilerPreSetup.h:8
@ Vertex
Definition MetalRHIPrivate.h:223
#define GENERATED_BODY(...)
Definition ObjectMacros.h:765
EObjectFlags
Definition ObjectMacros.h:552
#define UCLASS(...)
Definition ObjectMacros.h:776
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition Archive.h:1208
Definition DatasmithMesh.h:14
Definition NameTypes.h:617
Definition IModularFeature.h:12
Definition Array.h:670
UE_REWRITE SizeType Num() const
Definition Array.h:1144
Definition SubclassOf.h:30
Definition TVariant.h:48
Definition ActorComponent.h:152
Definition DatasmithCloth.h:103
Definition DatasmithCloth.h:131
Definition Object.h:95
GeometryCollection::Facades::FMuscleActivationData Data
Definition MuscleActivationConstraints.h:15