ICollectionManager::AddToCollection

Adds an asset to the specified collection.

Windows
MacOS
Linux

References

Module

CollectionManager

Header

/Engine/Source/Developer/CollectionManager/Public/ICollectionManager.h

Include

#include "ICollectionManager.h"

Syntax

bool AddToCollection
(
    FName CollectionName,
    ECollectionShareType::Type ShareType,
    FName ObjectPath
)

Remarks

Adds an asset to the specified collection.

Returns

true if the add was successful. If false, GetLastError will return a human readable string description of the error.

Parameters

Parameter

Description

CollectionName

The collection in which to add the asset

ShareType

The way the collection is shared.

ObjectPath

the ObjectPath of the asset to add.

OutNumAdded

if non-NULL, the number of objects successfully added to the collection

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