UDocumentation
UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
TransformData.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 "
Components/SceneComponent.h
"
7
11
struct
FTransformData
12
{
14
FVector
Translation
;
16
FRotator
Rotation
;
18
FVector
Scale
;
19
20
FTransformData
()
21
:
Translation
(
ForceInitToZero
)
22
,
Rotation
(
ForceInitToZero
)
23
,
Scale
(
ForceInitToZero
)
24
{}
25
32
FTransformData
(
const
USceneComponent*
InComponent
)
33
:
Translation
(
InComponent
->GetRelativeLocation())
34
,
Rotation
(
InComponent
->GetRelativeRotation())
35
,
Scale
(
InComponent
->
GetRelativeScale3D
())
36
{}
37
38
FTransformData
(
const
FTransform
&
InTransform
)
39
:
Translation
(
InTransform
.GetTranslation())
40
,
Rotation
(
InTransform
.GetRotation().
Rotator
())
41
,
Scale
(
InTransform
.GetScale3D())
42
{}
43
44
FTransformData
(
const
FVector
&
InTranslation
,
const
FRotator
&
InRotation
,
const
FVector
&
InScale
)
45
:
Translation
(
InTranslation
)
46
,
Rotation
(
InRotation
)
47
,
Scale
(
InScale
)
48
{}
49
};
CoreMinimal.h
ForceInitToZero
@ ForceInitToZero
Definition
CoreMiscDefines.h:156
StaticCastSharedRef
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition
SharedPointer.h:127
SceneComponent.h
EVariantTypes::Rotator
@ Rotator
FTransformData
Definition
TransformData.h:12
FTransformData::Scale
FVector Scale
Definition
TransformData.h:18
FTransformData::FTransformData
FTransformData(const FVector &InTranslation, const FRotator &InRotation, const FVector &InScale)
Definition
TransformData.h:44
FTransformData::FTransformData
FTransformData(const FTransform &InTransform)
Definition
TransformData.h:38
FTransformData::Translation
FVector Translation
Definition
TransformData.h:14
FTransformData::FTransformData
FTransformData()
Definition
TransformData.h:20
FTransformData::FTransformData
FTransformData(const USceneComponent *InComponent)
Definition
TransformData.h:32
FTransformData::Rotation
FRotator Rotation
Definition
TransformData.h:16
UE::Math::TRotator< double >
UE::Math::TTransform< double >
UE::Math::TVector< double >
Engine
Source
Runtime
MovieScene
Public
TransformData.h
Generated by
1.9.8