UAssetTagsSubsystem::AddAssetToCollection

Add the given asset to the given collection.

Choose your operating system:

Windows

macOS

Linux

References

Module

AssetTags

Header

/Engine/Plugins/Runtime/AssetTags/Source/AssetTags/Public/AssetTagsSubsystem.h

Include

#include "AssetTagsSubsystem.h"

Source

/Engine/Plugins/Runtime/AssetTags/Source/AssetTags/Private/AssetTagsSubsystem.cpp

Syntax

UFUNCTION(BlueprintCallable, Category="AssetTags")
bool AddAssetToCollection
(
    const FName Name,
    const FName AssetPathName
)

Remarks

Add the given asset to the given collection.

Returns

True if the collection was modified, false otherwise (see the output log for details on error).

Parameters

Parameter

Description

Name

Name of the collection to modify.

AssetPathName

Asset to add (its path name, eg) /Game/MyFolder/MyAsset.MyAsset).