UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
DatasmithTypes.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreTypes.h"
6#include "Math/MathFwd.h"
7#include "Math/Quat.h"
8#include "Math/Vector.h"
9
10#define UE_API DATASMITHCORE_API
11
13{
14 Linear,
16 Cubic
17};
18
20{
21public:
23 {
25 ScaleX = 1.0f;
26 ScaleY = 1.0f;
27 OffsetX = 0.0f;
28 OffsetY = 0.0f;
29 Rotation = 0.0f;
30 bInvert = false;
31 Multiplier = 1.0f;
32 OutputChannel = 0;
33 bCroppedTexture = false;
34 MirrorX = 0;
35 MirrorY = 0;
36 }
37
53
54 // UV coordinate index
56
57 // UV horizontal scale
58 float ScaleX;
59 // UV vertical scale
60 float ScaleY;
61
62 // UV horizontal offset [0,1] range
63 float OffsetX;
64 // UV vertical offset [0,1] range
65 float OffsetY;
66
67 // UV rotation [0,1] range
68 float Rotation;
69
70 // texture multiplier
72
73 // force texture invert
74 bool bInvert;
75
76 // color channel to be connected
78
79 // flag to enable UV cropping
81
82 // UV Mirror 0 No mirror, X mirror tilling otherwise
84 // UV Mirror 0 No mirror, X mirror tilling otherwise
86};
87
94{
101
110
113 , X(InX)
114 , Y(InY)
115 , Z(InZ)
116 {}
117
119 UE_API bool IsValid() const;
120
122
123 // For translation and scale, X, Y, Z are the transform values of the respective components
124 // For rotation, they represent rotation around the X, Y, Z axis (roll, pitch, yaw respectively) in degrees
125 double X;
126 double Y;
127 double Z;
128
130};
131
150
151#undef UE_API
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 UE_API
Definition DatasmithTypes.h:10
EDatasmithCurveInterpMode
Definition DatasmithTypes.h:13
Definition DatasmithTypes.h:20
float ScaleY
Definition DatasmithTypes.h:60
FDatasmithTextureSampler(int InCoordinateIndex, float InSx, float InSy, float InOx, float InOy, float InRotation, float InMultiplier, bool bInInvert, int InOutputChannel, bool InCroppedTexture, int InMirrorX, int InMirrorY)
Definition DatasmithTypes.h:38
FDatasmithTextureSampler()
Definition DatasmithTypes.h:22
float OffsetY
Definition DatasmithTypes.h:65
int OutputChannel
Definition DatasmithTypes.h:77
int MirrorX
Definition DatasmithTypes.h:83
int CoordinateIndex
Definition DatasmithTypes.h:55
bool bCroppedTexture
Definition DatasmithTypes.h:80
float Rotation
Definition DatasmithTypes.h:68
float ScaleX
Definition DatasmithTypes.h:58
float OffsetX
Definition DatasmithTypes.h:63
int MirrorY
Definition DatasmithTypes.h:85
bool bInvert
Definition DatasmithTypes.h:74
float Multiplier
Definition DatasmithTypes.h:71
Definition DatasmithTypes.h:94
double X
Definition DatasmithTypes.h:125
double Z
Definition DatasmithTypes.h:127
double Y
Definition DatasmithTypes.h:126
FDatasmithTransformFrameInfo(int32 InFrameNumber, const FQuat &InQuat)
Definition DatasmithTypes.h:102
static UE_API FDatasmithTransformFrameInfo InvalidFrameInfo
Definition DatasmithTypes.h:129
UE_API bool operator==(const FDatasmithTransformFrameInfo &Other) const
Definition DatasmithTypes.cpp:14
FDatasmithTransformFrameInfo(int32 InFrameNumber, double InX, double InY, double InZ)
Definition DatasmithTypes.h:111
FDatasmithTransformFrameInfo(int32 InFrameNumber, const FVector &InVec)
Definition DatasmithTypes.h:95
UE_API bool IsValid() const
Definition DatasmithTypes.cpp:9
int32 FrameNumber
Definition DatasmithTypes.h:121
Definition DatasmithTypes.h:136
int32 FrameNumber
Definition DatasmithTypes.h:145
bool bVisible
Definition DatasmithTypes.h:146
FDatasmithVisibilityFrameInfo(int32 InFrameNumber, bool bInVisible)
Definition DatasmithTypes.h:137
UE_API bool IsValid() const
Definition DatasmithTypes.cpp:23
static UE_API FDatasmithVisibilityFrameInfo InvalidFrameInfo
Definition DatasmithTypes.h:148
UE_API bool operator==(const FDatasmithVisibilityFrameInfo &Other) const
Definition DatasmithTypes.cpp:28
T X
Definition Vector.h:62