FPreloadableFile::TryRegister

Registration.

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 bool TryRegister
(
    const TSharedPtr< FPreloadableFile > & PreloadableFile
)

Remarks

Try to register the given FPreloadableFile instance to handle the next call to TryTakeArchive for its FileName. Will fail if the instance has not been initialized or if another instance has already registered for the Filename. Return whether the instance is currently registered. Returns true if the instance was already registered. Registered files are referenced-counted, and the reference will not be dropped until (1) (TryTakeArchive or UnRegister is called) and (2) (PreloadBytes mode only) the archive returned from TryTakeArchive is deleted.

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