FUObjectAnnotationChunked::AddOrGetAnnotation

Add an annotation to the annotation list.

Choose your operating system:

Windows

macOS

Linux

References

Module

CoreUObject

Header

/Engine/Source/Runtime/CoreUObject/Public/UObject/UObjectAnnotation.h

Include

#include "UObject/UObjectAnnotation.h"

Syntax

TAnnotation & AddOrGetAnnotation
(
    int32 Index,
    TFunctionRef< TAnnotation()> NewAnnotationFn
)

Remarks

Add an annotation to the annotation list. If the Annotation is the default, then the annotation is removed.

Parameters

Parameter

Description

Index

Index of object to annotate.

Annotation

Annotation to associate with Object.