Navigation
Unreal Engine C++ API Reference > Developer > CollectionManager > ICollectionManager > RemoveFromCollection
References
Module | CollectionManager |
Header | /Engine/Source/Developer/CollectionManager/Public/ICollectionManager.h |
Include | #include "ICollectionManager.h" |
bool RemoveFromCollection ( [FName](API\Runtime\Core\UObject\FName) CollectionName, [ECollectionShareType::Type](API\Developer\CollectionManager\ECollectionShareType\Type) ShareType, const [FSoftObjectPath](API\Runtime\CoreUObject\UObject\FSoftObjectPath) & ObjectPath )
Remarks
Removes the asset from the specified collection. true if the remove was successful. If false, GetLastError will return a human readable string description of the error.
Parameters
Name | Description |
---|---|
CollectionName | The collection from which to remove the asset |
ShareType | The way the collection is shared. |
ObjectPath | the ObjectPath of the asset to remove. |
OutNumRemoved | if non-NULL, the number of objects successfully removed from the collection |