ICollectionManager::IsValidParentCollection

Check to see if the given collection is valid to be used as the parent of another collection.

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

References

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

Remarks

Check to see if the given collection is valid to be used as the parent of another collection. A collection may not be parented to itself, nor any of its current children. true if the parent is considered valid for this collection. If false, GetLastError will return a human readable string describing why the parent is invalid.

Parameters

Name Description
CollectionName The name of the collection to check the parent of.
ShareType The way the collection is shared.
ParentCollectionName The name of the parent collection to test against.
ParentShareType The way the new parent collection is shared.

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library