Navigation
API > API/Developer > API/Developer/CollectionManager
References
| Module | CollectionManager |
| Header | /Engine/Source/Developer/CollectionManager/Public/ICollectionManager.h |
| Include | #include "ICollectionManager.h" |
Syntax
class ICollectionManager
Destructors
| Type | Name | Description | |
|---|---|---|---|
| Virtual destructor |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | AddToCollection
(
FName CollectionName, |
||
| bool | AddToCollection
(
FName CollectionName, |
Adds an asset to the specified collection. | |
| bool | CollectionExists
(
FName CollectionName, |
Returns true if the collection exists | |
| bool | CreateCollection
(
FName CollectionName, |
Adds a collection to the asset registry. A .collection file will be added to disk. | |
| void | CreateUniqueCollectionName
(
const FName& BaseName, |
Creates a unique collection name for the given type taking the form BaseName+(unique number) | |
| bool | DestroyCollection
(
FName CollectionName, |
Removes a collection to the asset registry. A .collection file will be deleted from disk. | |
| bool | EmptyCollection
(
FName CollectionName, |
Removes all assets from the specified collection. | |
| bool | GetAssetsInCollection
(
FName CollectionName, |
Returns a list of asset paths found in the specified collection and share type | |
| void | GetChildCollectionNames
(
FName CollectionName, |
Returns the list of child collections of the given collection that are also of the specified share type | |
| void | GetChildCollections
(
FName CollectionName, |
Returns the list of child collections of the given collection | |
| bool | GetClassesInCollection
(
FName CollectionName, |
Returns a list of class paths found in the specified collection and share type | |
| bool | GetCollectionColor
(
FName CollectionName, |
Gets the optional color for the specified collection | |
| void | GetCollectionNames
(
ECollectionShareType::Type ShareType, |
Returns the list of collection names of the specified share type | |
| void | GetCollections
(
TArray< FCollectionNameType >& OutCollections |
Returns the list of collections | |
| void | GetCollections
(
FName CollectionName, |
Returns the list of collections with the given name | |
| void | GetCollectionsContainingObject
(
const FSoftObjectPath& ObjectPath, |
Returns a list of collections in which the specified object exists | |
| void | GetCollectionsContainingObject
(
const FSoftObjectPath& ObjectPath, |
Returns a list of collections in which the specified object exists of the specified share type | |
| void | GetCollectionsContainingObjects
(
const TArray< FSoftObjectPath >& ObjectPaths, |
Returns a list of collections in which any of the specified objects exist | |
| FString | GetCollectionsStringForObject
(
const FSoftObjectPath& ObjectPath, |
Returns a string containing a comma separated list of collections in which the specified object exists of the specified share type | |
| bool | GetCollectionStatusInfo
(
FName CollectionName, |
Gets the status info for the specified collection | |
| bool | GetCollectionStorageMode
(
FName CollectionName, |
Gets the method by which the specified collection stores its objects (static or dynamic) | |
| bool | GetDynamicQueryText
(
FName CollectionName, |
Gets the dynamic query text for the specified collection. | |
| FText | GetLastError () |
Returns the most recent error. | |
| bool | GetObjectsInCollection
(
FName CollectionName, |
Returns a list of object paths found in the specified collection and share type | |
| TOptional< FCollectionNameType > | GetParentCollection
(
FName CollectionName, |
Returns the parent collection of the given collection, or an unset value if there is no parent set | |
| void | GetRootCollectionNames
(
ECollectionShareType::Type ShareType, |
Returns the list of root-level collection names of the specified share type | |
| void | GetRootCollections
(
TArray< FCollectionNameType >& OutCollections |
Returns the list of root-level collections | |
| void | HandleFixupRedirectors
(
ICollectionRedirectorFollower& InRedirectorFollower |
Called to notify the collections that they should fix-up their object references so that they no longer contain any redirectors References are only updated in-memory, and won't be saved to disk until a redirector is deleted (which forces our hand), or the collection is saved for any other reason | |
| void | HandleObjectDeleted
(
const FSoftObjectPath& ObjectPath |
Called to notify the collections that an object has been deleted | |
| void | HandleObjectRenamed
(
const FSoftObjectPath& OldObjectPath, |
Called to notify the collections that an object has been renamed or moved | |
| bool | HandleRedirectorDeleted
(
const FSoftObjectPath& ObjectPath |
Called to notify the collections that a redirector has been deleted and that they should ensure their on-disk representation is re-saved with the fixed up in-memory version | |
| bool | HasCollectionColors
(
TArray< FLinearColor >* OutColors |
Checks whether any collections have a custom color set, optionally retrieving the list of in-use colors | |
| bool | Returns whether or not the collection manager contains any collections | ||
| bool | IsObjectInCollection
(
const FSoftObjectPath& ObjectPath, |
Check to see if the given object exists in the given collection | |
| bool | IsValidCollectionName
(
const FString& CollectionName, |
Returns whether or not the given collection name is valid. | |
| bool | IsValidParentCollection
(
FName CollectionName, |
Check to see if the given collection is valid to be used as the parent of another collection. | |
| FAddToCollectionCheckinDescriptionEvent & | |||
| FOnAssetsAddedToCollection & | |||
| FOnAssetsRemovedFromCollection & | |||
| FCollectionCreatedEvent & | |||
| FCollectionDestroyedEvent & | |||
| FCollectionRenamedEvent & | |||
| FCollectionReparentedEvent & | |||
| FCollectionUpdatedEvent & | |||
| bool | RemoveFromCollection
(
FName CollectionName, |
Removes the asset from the specified collection. | |
| bool | RemoveFromCollection
(
FName CollectionName, |
||
| bool | RenameCollection
(
FName CurrentCollectionName, |
Renames a collection. | |
| bool | ReparentCollection
(
FName CollectionName, |
Re-parents a collection. | |
| bool | SaveCollection
(
FName CollectionName, |
Save the collection (if dirty) and check it into source control (if under SCC control) | |
| bool | SetCollectionColor
(
FName CollectionName, |
Sets the optional color for the specified collection | |
| bool | SetDynamicQueryText
(
FName CollectionName, |
Sets the dynamic query text for the specified collection. | |
| bool | TestDynamicQuery
(
FName CollectionName, |
Tests the dynamic query for the specified collection against the context provided. | |
| bool | UpdateCollection
(
FName CollectionName, |
Update the collection to make sure it's using the latest version from source control (if under SCC control) |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FAddToCollectionCheckinDescriptionEvent | When a collection checkin happens, use this event to add additional text to the changelist description | ||
| FAssetsAddedEvent | |||
| FAssetsRemovedEvent | |||
| FCollectionCreatedEvent | Event for when collections are created | ||
| FCollectionDestroyedEvent | Event for when collections are destroyed | ||
| FCollectionRenamedEvent | Event for when collections are renamed | ||
| FCollectionReparentedEvent | Event for when collections are re-parented (params: Collection, OldParent, NewParent) | ||
| FCollectionUpdatedEvent | Event for when collections is updated, or otherwise changed and we can't tell exactly how (eg, after updating from source control and merging) |
Typedefs
| Name | Description |
|---|---|
| FOnAssetsAddedToCollection | Event for when assets are added to a collection |
| FOnAssetsRemovedFromCollection | Event for when assets are removed from a collection |
Deprecated Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | AddToCollection
(
FName CollectionName, |
FNames containing full object paths are deprecated. Use FSoftObjectPath instead. | |
| bool | AddToCollection
(
FName CollectionName, |
FNames containing full object paths are deprecated. Use FSoftObjectPath instead. | |
| bool | GetAssetsInCollection
(
FName CollectionName, |
FNames containing full object paths are deprecated. Use FSoftObjectPath instead. | |
| bool | GetClassesInCollection
(
FName CollectionName, |
FNames containing class paths are deprecated. Use FTopLevelAssetPath instead. | |
| void | GetCollectionsContainingObject
(
FName ObjectPath, |
FNames containing full object paths are deprecated. Use FSoftObjectPath instead. | |
| void | GetCollectionsContainingObject
(
FName ObjectPath, |
FNames containing full object paths are deprecated. Use FSoftObjectPath instead. | |
| void | GetCollectionsContainingObjects
(
const TArray< FName >& ObjectPaths, |
FNames containing full object paths are deprecated. Use FSoftObjectPath instead. | |
| FString | GetCollectionsStringForObject
(
FName ObjectPath, |
FNames containing full object paths are deprecated. Use FSoftObjectPath instead. | |
| bool | GetObjectsInCollection
(
FName CollectionName, |
FNames containing full object paths are deprecated. Use FSoftObjectPath instead. | |
| void | HandleObjectDeleted
(
const FName& ObjectPath |
FNames containing full object paths are deprecated. Use FSoftObjectPath instead. | |
| void | HandleObjectRenamed
(
const FName& OldObjectPath, |
FNames containing full object paths are deprecated. Use FSoftObjectPath instead. | |
| bool | HandleRedirectorDeleted
(
const FName& ObjectPath |
FNames containing full object paths are deprecated. Use FSoftObjectPath instead. | |
| bool | IsObjectInCollection
(
FName ObjectPath, |
FNames containing full object paths are deprecated. Use FSoftObjectPath instead. | |
| FAssetsAddedEvent & | Names containing full asset paths are deprecated, use OnAssetsAddedToCollection instead. | ||
| FAssetsRemovedEvent & | Names containing full asset paths are deprecated, use OnAssetsRemovedFromCollection instead. | ||
| bool | RemoveFromCollection
(
FName CollectionName, |
FNames containing full object paths are deprecated. Use FSoftObjectPath instead. | |
| bool | RemoveFromCollection
(
FName CollectionName, |
FNames containing full object paths are deprecated. Use FSoftObjectPath instead. |