Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/Engine/Classes/Engine/ObjectLibrary.h |
Include |
#include "Engine/ObjectLibrary.h" |
Source |
/Engine/Source/Runtime/Engine/Private/ObjectLibrary.cpp |
static UObjectLibrary * CreateLibrary
(
UClass * InBaseClass,
bool bInHasBlueprintClasses,
bool bInUseWeak
)
Static function to create a new ObjectLibrary at runtime, with various options set There is now a better version of this functionality in AssetManager, if you are creating many game-specific libraries you should switch to using AssetManager instead
Parameter |
Description |
---|---|
InBaseClass |
Only objects of this class can exist in the library |
bInHasBlueprintClasses |
If true, this library contains blueprint classes derived from BaseClass, will convert them correctly |
InUseWeak |
If true, references to objects are weak, so they can be garbage collected. Useful in the editor to allow deletion |