UObjectLibrary::CreateLibrary

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

References

Module

Engine

Header

Runtime/Engine/Classes/Engine/ObjectLibrary.h

Source

Runtime/Engine/Private/ObjectLibrary.cpp