Object library in Blueprints or from c++

Hi Kielbasa,
When you have the C++ blueprint library in place as per the code above then you call the LoadObjectLibrary function in the Blueprint Editor. You might need to restart the editor the first time to let it access the library.

The Path parameter is the folder you want to load objects from, in the example below I have my objects stored in a folder Textures right under the Content folder. The Object Class parameter specifies what type of object you want to load, in your case that would be a Texture2D class. The Return Value parameter would then return an array of the objects found. The last step for you is to Cast each object in the array to a Texture2D.

216225-loadlib.png