ICollectionManager::IsValidParentCollection

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

Windows
MacOS
Linux

References

Module

CollectionManager

Header

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

Include

#include "ICollectionManager.h"

Syntax

bool IsValidParentCollection
(
    FName CollectionName,
    ECollectionShareType::Type ShareType,
    FName ParentCollectionName,
    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.

Returns

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

Parameter

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.

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