FSwapChange

To use [FSwapChange](API\Runtime\Core\Misc\FSwapChange) you must implement [Execute()](API\Runtime\Core\Misc\FChange\Execute).

Windows
MacOS
Linux

Inheritance Hierarchy

FChange

FSwapChange

FCompoundChange

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Misc/Change.h

Include

#include "Misc/Change.h"

Syntax

class FSwapChange : public FChange

Remarks

To use FSwapChange you must implement Execute(). This function must do two things: 1) apply the change to the given UObject 2) return a new FSwapChange that does the "opposite" action

Overridden from FChange

Name Description

Public function Virtual

void

 

Apply

(
    UObject* Object
)

Makes the change to the object

Public function Virtual

EChangeStyle

 

GetChangeType()

What style of change is this

Public function Virtual

void

 

Revert

(
    UObject* Object
)

Reverts change to the object

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss