UObjectLibrary::CreateLibrary

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

Windows
MacOS
Linux

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

Syntax

static UObjectLibrary * CreateLibrary
(
    UClass * InBaseClass,
    bool bInHasBlueprintClasses,
    bool bInUseWeak
)

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

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

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