Navigation
API > API/Editor > API/Editor/UnrealEd
Commandlet to allow diff in P4V, and expose that functionality to the editor
| Name | UDiffAssetsCommandlet |
| Type | class |
| Header File | /Engine/Source/Editor/UnrealEd/Classes/Commandlets/DiffAssetsCommandlet.h |
| Include Path | #include "Commandlets/DiffAssetsCommandlet.h" |
Syntax
UCLASS ()
class UDiffAssetsCommandlet : public UCommandlet
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UCommandlet → UDiffAssetsCommandlet
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UDiffAssetsCommandlet
(
const FObjectInitializer& ObjectInitializer |
Commandlets/DiffAssetsCommandlet.h |
Functions
Public
Overridden from UCommandlet
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual int32 Main
(
const FString& Params |
Commandlets/DiffAssetsCommandlet.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static bool CopyFileToTempLocation
(
FString& InOutFilename |
Copies a uasset file or map to a temp location so it can be loaded without disruption to anything | Commandlets/DiffAssetsCommandlet.h | |
| Loads a uasset file or map and provides a sorted list of contained objects (but not subobjects as those will get exported anyway) | Commandlets/DiffAssetsCommandlet.h | ||
static bool ExportFilesToTextAndDiff
(
const FString& Params |
The meat of the commandlet, this can be called from the editor Format of commandline is as follow File1.uasset File2.uasset -DiffCmd="C:/Program Files/Araxis/Araxis Merge/AraxisP4Diff.exe {1} {2}" | Commandlets/DiffAssetsCommandlet.h | |
static bool ExportFilesToTextAndDiff
(
const FString& Filename1, |
Runs an external diff utility | Commandlets/DiffAssetsCommandlet.h | |
| Loads a uasset file or map and provides a sorted list of contained objects (but not subobjects as those will get exported anyway) | Commandlets/DiffAssetsCommandlet.h |