Navigation
Unreal Engine C++ API Reference > Runtime > Engine > Engine > UObjectLibrary
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Classes/Engine/ObjectLibrary.h |
Include | #include "Engine/ObjectLibrary.h" |
Source | /Engine/Source/Runtime/Engine/Private/ObjectLibrary.cpp |
static UObjectLibrary &42; CreateLibrary
&40;
UClass &42; InBaseClass,
bool bInHasBlueprintClasses,
bool bInUseWeak
&41;
Remarks
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
Parameters
Name | 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 |