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

[CL 17055606 by michael balzer in ue5-main branch]
2021-08-04 13:58:55 -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;
};