Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/UClass
Description
Tries to fix an export path containing short class name. Will not modify the input InOutExportPathToFix if a fixup was not necessary. Optionally modifies it if a fixup is necessary but unsuccessful.
| Name | TryFixShortClassNameExportPath |
| Type | function |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/UObject/Class.h |
| Include Path | #include "UObject/Class.h" |
| Source | /Engine/Source/Runtime/CoreUObject/Private/UObject/Class.cpp |
static bool TryFixShortClassNameExportPath
(
FString & InOutExportPathToFix,
ELogVerbosity::Type AmbiguousMessageVerbosity,
const TCHAR * AmbiguousClassMessage,
bool bClearOnError
)
True if the short path was successfully fixed. False if the provided export path did not contain short class name or the short path could not be fixed.
Parameters
| Name | Remarks |
|---|---|
| InOutExportPathToFix | Export path (Class'/Path/To.Object') |
| AmbiguousMessageVerbosity | Verbosity with which to log a message if class name is ambiguous |
| AmbiguousClassMessage | Additional message to log when class name is ambiguous (e.g. current operation) |
| bClearOnError | If the fixup is necessary but unsuccessful, if bClearOnError, clear the value and return true, otherwise leave the value unchanged and return false. |