UEditorEngine::IsPackageValidForAutoAdding

Checks if a provided package is valid to be auto-added to a default changelist based on several specifications (and if the user has elected to enable the feature).

Windows
MacOS
Linux

References

Module

UnrealEd

Header

/Engine/Source/Editor/UnrealEd/Classes/Editor/EditorEngine.h

Include

#include "Editor/EditorEngine.h"

Source

/Engine/Source/Editor/UnrealEd/Private/EditorEngine.cpp

Syntax

bool IsPackageValidForAutoAdding
(
    UPackage * InPackage,
    const FString & InFilename
)

Remarks

Checks if a provided package is valid to be auto-added to a default changelist based on several specifications (and if the user has elected to enable the feature). Only brand-new packages will be allowed.

Returns

true if the provided package is valid to be auto-added to a default source control changelist

Parameters

Parameter

Description

InPackage

Package to consider the validity of auto-adding to a default source control changelist

InFilename

Filename of the package after it will be saved (not necessarily the same as the filename of the first param in the event of a rename)

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