Files
UnrealEngineUWP/Engine/Source/Runtime/InteractiveToolsFramework/Public/Changes/TransformChange.h
michael balzer 5a20a5e3d0 Move InteractiveToolsFramework and GeometryFramework out of Experimental
#jira UETOOL-3823
#rb brooke.hubert
#preflight 6109d1e9b4288d0001acb7ef

#ROBOMERGE-SOURCE: CL 17055606 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v850-17047176)

[CL 17055619 by michael balzer in ue5-release-engine-test branch]
2021-08-04 13:59:17 -04:00

36 lines
969 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "InteractiveToolChange.h"
/**
* FComponentWorldTransformChange represents an undoable change to the world transform of a USceneComponent.
*/
class INTERACTIVETOOLSFRAMEWORK_API FComponentWorldTransformChange : public FToolCommandChange
{
public:
FComponentWorldTransformChange();
FComponentWorldTransformChange(const FTransform& From, const FTransform& To);
FTransform FromWorldTransform;
FTransform ToWorldTransform;
/** This function is called on Apply and Revert (last argument is true on Apply)*/
TFunction<void(FComponentWorldTransformChange*, UObject*, bool)> OnChangeAppliedFunc;
/** Makes the change to the object */
virtual void Apply(UObject* Object) override;
/** Reverts change to the object */
virtual void Revert(UObject* Object) override;
/** Describes this change (for debugging) */
virtual FString ToString() const override;
};