Navigation
API > API/Developer > API/Developer/CollectionManager
| Name | ICollectionContainer |
| Type | class |
| Header File | /Engine/Source/Developer/CollectionManager/Public/ICollectionContainer.h |
| Include Path | #include "ICollectionContainer.h" |
Syntax
class ICollectionContainer : public TSharedFromThis< ICollectionContainer >
Inheritance Hierarchy
- TSharedFromThis< ICollectionContainer > → ICollectionContainer
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
ICollectionContainer
(
const ICollectionContainer& |
ICollectionContainer.h | ||
| ICollectionContainer.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~ICollectionContainer() |
ICollectionContainer.h |
Classes
| Name | Remarks |
|---|---|
| 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) |
| FIsHiddenChangedEvent | Event for when the collection container's hidden state changes |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FOnAssetsAddedToCollection | TMulticastDelegate_ThreeParams< void, ICollectionContainer &, const FCollectionNameType &, TConstArrayView< FSoftObjectPath > > | Event for when assets are added to a collection | ICollectionContainer.h |
| FOnAssetsRemovedFromCollection | TMulticastDelegate_ThreeParams< void, ICollectionContainer &, const FCollectionNameType &, TConstArrayView< FSoftObjectPath > > | Event for when assets are removed from a collection | ICollectionContainer.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool AddToCollection
(
FName CollectionName, |
ICollectionContainer.h | ||
bool AddToCollection
(
FName CollectionName, |
Adds an asset to the specified collection. | ICollectionContainer.h | |
bool CollectionExists
(
FName CollectionName, |
Returns true if the collection exists | ICollectionContainer.h | |
bool CreateCollection
(
FName CollectionName, |
Creates a new collection. A .collection file will be added to disk. | ICollectionContainer.h | |
void CreateUniqueCollectionName
(
FName BaseName, |
Creates a unique collection name for the given type taking the form BaseName+(unique number) | ICollectionContainer.h | |
bool DestroyCollection
(
FName CollectionName, |
Removes a collection to the asset registry. A .collection file will be deleted from disk. | ICollectionContainer.h | |
bool EmptyCollection
(
FName CollectionName, |
Removes all assets from the specified collection. | ICollectionContainer.h | |
bool GetAssetsInCollection
(
FName CollectionName, |
Gets a list of assets in the given collection | ICollectionContainer.h | |
void GetChildCollectionNames
(
FName CollectionName, |
Returns the list of child collections of the given collection that are also of the specified share type | ICollectionContainer.h | |
void GetChildCollections
(
FName CollectionName, |
Returns the list of child collections of the given collection | ICollectionContainer.h | |
bool GetClassesInCollection
(
FName CollectionName, |
Gets a list of class paths in the given collection | ICollectionContainer.h | |
bool GetCollectionColor
(
FName CollectionName, |
Gets the optional color for the specified collection | ICollectionContainer.h | |
void GetCollectionNames
(
ECollectionShareType::Type ShareType, |
Returns the list of collection names of the specified share type | ICollectionContainer.h | |
void GetCollections
(
FName CollectionName, |
Returns the list of collections with the given name | ICollectionContainer.h | |
void GetCollections
(
TArray< FCollectionNameType >& OutCollections |
Returns the list of collections | ICollectionContainer.h | |
void GetCollectionsContainingObject
(
const FSoftObjectPath& ObjectPath, |
Returns a list of collections in which the specified object exists of the specified share type | ICollectionContainer.h | |
void GetCollectionsContainingObject
(
const FSoftObjectPath& ObjectPath, |
Returns a list of collections in which the specified object exists | ICollectionContainer.h | |
void GetCollectionsContainingObjects
(
const TArray< FSoftObjectPath >& ObjectPaths, |
Returns a list of collections in which any of the specified objects exist | ICollectionContainer.h | |
const TSharedRef< ICollectionSource > & GetCollectionSource() |
Returns the source of the collections in this container | ICollectionContainer.h | |
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 | ICollectionContainer.h | |
bool GetCollectionStatusInfo
(
FName CollectionName, |
Gets the status info for the specified collection | ICollectionContainer.h | |
bool GetCollectionStorageMode
(
FName CollectionName, |
Gets the method by which the specified collection stores its objects (static or dynamic) | ICollectionContainer.h | |
bool GetDynamicQueryText
(
FName CollectionName, |
Gets the dynamic query text for the specified collection. | ICollectionContainer.h | |
bool GetObjectsInCollection
(
FName CollectionName, |
Gets a list of objects in the given collection | ICollectionContainer.h | |
TOptional< FCollectionNameType > GetParentCollection
(
FName CollectionName, |
Returns the parent collection of the given collection, or an unset value if there is no parent set | ICollectionContainer.h | |
void GetRootCollectionNames
(
ECollectionShareType::Type ShareType, |
Returns the list of root-level collection names of the specified share type | ICollectionContainer.h | |
void GetRootCollections
(
TArray< FCollectionNameType >& OutCollections |
Returns the list of root-level collections | ICollectionContainer.h | |
bool HasCollectionColors
(
TArray< FLinearColor >* OutColors |
Checks whether any collections have a custom color set, optionally retrieving the list of in-use colors | ICollectionContainer.h | |
bool HasCollections() |
Returns whether or not the collection container contains any collections | ICollectionContainer.h | |
bool IsHidden() |
Returns whether or not the collection container should be hidden in the Editor's UI | ICollectionContainer.h | |
bool IsObjectInCollection
(
const FSoftObjectPath& ObjectPath, |
Check to see if the given object exists in the given collection | ICollectionContainer.h | |
bool IsReadOnly
(
ECollectionShareType::Type ShareType |
Returns whether or not the collection container is read-only for the specified share type | ICollectionContainer.h | |
bool IsValidCollectionName
(
const FString& CollectionName, |
Check whether the given name is valid for a new collection. | ICollectionContainer.h | |
bool IsValidParentCollection
(
FName CollectionName, |
Check to see if the given collection is valid to be used as the parent of another collection. | ICollectionContainer.h | |
FString MakeCollectionPath
(
FName CollectionName, |
Returns a path that uniquely identifies a collection | ICollectionContainer.h | |
FOnAssetsAddedToCollection & OnAssetsAddedToCollection() |
ICollectionContainer.h | ||
FOnAssetsRemovedFromCollection & OnAssetsRemovedFromCollection() |
ICollectionContainer.h | ||
FCollectionCreatedEvent & OnCollectionCreated() |
ICollectionContainer.h | ||
FCollectionDestroyedEvent & OnCollectionDestroyed() |
ICollectionContainer.h | ||
FCollectionRenamedEvent & OnCollectionRenamed() |
ICollectionContainer.h | ||
FCollectionReparentedEvent & OnCollectionReparented() |
ICollectionContainer.h | ||
FCollectionUpdatedEvent & OnCollectionUpdated() |
ICollectionContainer.h | ||
FIsHiddenChangedEvent & OnIsHiddenChanged() |
ICollectionContainer.h | ||
bool RemoveFromCollection
(
FName CollectionName, |
Removes the asset from the specified collection. | ICollectionContainer.h | |
bool RemoveFromCollection
(
FName CollectionName, |
ICollectionContainer.h | ||
bool RenameCollection
(
FName CurrentCollectionName, |
Renames a collection. | ICollectionContainer.h | |
bool ReparentCollection
(
FName CollectionName, |
Re-parents a collection. | ICollectionContainer.h | |
bool SaveCollection
(
FName CollectionName, |
Save the collection (if dirty) and check it into source control (if under SCC control) | ICollectionContainer.h | |
bool SetCollectionColor
(
FName CollectionName, |
Sets the optional color for the specified collection | ICollectionContainer.h | |
bool SetDynamicQueryText
(
FName CollectionName, |
Sets the dynamic query text for the specified collection. | ICollectionContainer.h | |
void SetHidden
(
bool bHidden |
Sets whether or not the collection container should be hidden in the Editor's UI | ICollectionContainer.h | |
void SetReadOnly
(
ECollectionShareType::Type ShareType, |
Sets whether or not the collection container is read-only for the specified share type | ICollectionContainer.h | |
bool TestDynamicQuery
(
FName CollectionName, |
Tests the dynamic query for the specified collection against the context provided. | ICollectionContainer.h | |
bool UpdateCollection
(
FName CollectionName, |
Update the collection to make sure it's using the latest version from source control (if under SCC control) | ICollectionContainer.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
ICollectionContainer & operator=
(
const ICollectionContainer& |
ICollectionContainer.h |