ICollectionManager::CreateCollection

Adds a collection to the asset registry. A .collection file will be added to disk.

Unreal Engine C++ API Reference > Developer > CollectionManager > ICollectionManager

References

   
Module CollectionManager
Header /Engine/Source/Developer/CollectionManager/Public/ICollectionManager.h
Include #include "ICollectionManager.h"
bool CreateCollection
(
    [FName](API\Runtime\Core\UObject\FName) CollectionName,
    [ECollectionShareType::Type](API\Developer\CollectionManager\ECollectionShareType\Type) ShareType,
    [ECollectionStorageMode::Type](API\Developer\CollectionManager\ECollectionStorageMode\Type) StorageMode
)

Remarks

Adds a collection to the asset registry. A .collection file will be added to disk. true if the add was successful. If false, GetLastError will return a human readable string description of the error.

Parameters

Name Description
CollectionName The name of the new collection
ShareType The way the collection is shared.
StorageMode How does this collection store its objects? (static or dynamic)

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library