FPreloadableFile::TryTakeArchive

Look up an [FPreloadableFile](API\Runtime\Core\Misc\FPreloadableFile) instance registered for the given FileName, and return an [FArchive](API\Runtime\Core\Serialization\FArchive) from it.

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Misc/PreloadableFile.h"

Source

/Engine/Source/Runtime/Core/Private/Misc/PreloadableFile.cpp

Syntax

static FArchive * TryTakeArchive
(
    const TCHAR * FileName
)

Remarks

Look up an FPreloadableFile instance registered for the given FileName, and return an FArchive from it. If found, removes the registration so no future call to TryTakeArchive can sue the same FArchive. If the instance is in PreloadHandle mode, the Lower-Level FArchive will be detached from the FPreloadableFile and returned using DetachLowerLevel. If the instance is in PreloadBytes mode, a ProxyArchive will be returned that forwards call to the FPreloadableFile instance.

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