You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#jira UETOOL-3823 #rb brooke.hubert #preflight 6109d1e9b4288d0001acb7ef [CL 17055606 by michael balzer in ue5-main branch]
36 lines
969 B
C++
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;
|
|
};
|
|
|
|
|
|
|