UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
CookTagList.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4#include "UObject/Object.h"
6
32{
36
37 FCookTagList(UPackage* InPackage) : Package(InPackage) {}
38
47 void Add(UObject* InObject, FName InTagName, FString&& InTagValue)
48 {
49 if (!Package || !ensure(InObject->GetOutermost() == Package))
50 {
51 return;
52 }
53
54 if (InObject->IsAsset())
55 {
58 }
59 }
60
61 void Reset()
62 {
63 ObjectToTags.Reset();
64 }
65};
#define ensure( InExpression)
Definition AssertionMacros.h:464
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
Definition NameTypes.h:617
Definition Array.h:670
UE_NODEBUG UE_FORCEINLINE_HINT SizeType Add(ElementType &&Item)
Definition Array.h:2696
Definition UnrealString.h.inl:34
COREUOBJECT_API UPackage * GetOutermost() const
Definition UObjectBaseUtility.cpp:224
Definition Object.h:95
virtual COREUOBJECT_API bool IsAsset() const
Definition Obj.cpp:2704
Definition Package.h:216
Definition CookTagList.h:32
FCookTagList(UPackage *InPackage)
Definition CookTagList.h:37
void Reset()
Definition CookTagList.h:61
UPackage * Package
Definition CookTagList.h:33
void Add(UObject *InObject, FName InTagName, FString &&InTagValue)
Definition CookTagList.h:47
TPair< FName, FString > FTagNameValuePair
Definition CookTagList.h:34
TMap< UObject *, TArray< FTagNameValuePair > > ObjectToTags
Definition CookTagList.h:35
Definition Tuple.h:652