![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <UObjectAnnotation.h>
Inheritance diagram for FUObjectAnnotationDense< TAnnotation, bAutoRemove >:FUObjectAnnotationDense is a helper class that is used to store dense, fast, temporary, editor only, external or other tangential information about UObjects.
There is a notion of a default annotation and UObjects default to this annotation.
Annotations are automatically returned to the default when UObjects are destroyed. Annotation are not "garbage collection aware", so it isn't safe to store pointers to other UObjects in an annotation unless external guarantees are made such that destruction of the other object removes the annotation.
| TAnnotation | type of the annotation |
| bAutoRemove | if true, annotation will automatically be removed, otherwise in non-final builds it will verify that the annotation was removed by other means prior to destruction. |
|
inlinevirtual |
Destructor, removes all annotations, which removes the annotation as a uobject destruction listener
|
inline |
Add an annotation to the annotation list. If the Annotation is the default, then the annotation is removed.
| Object | Object to annotate. |
| Annotation | Annotation to associate with Object. |
|
inline |
|
inline |
Add an annotation to the annotation list. If the Annotation is the default, then the annotation is removed.
| Index | Index of object to annotate. |
| Annotation | Annotation to associate with Object. |
|
inline |
|
inlineoverridevirtual |
Returns the memory allocated by the internal array
Reimplemented from FUObjectArray::FUObjectDeleteListener.
|
inline |
Return the annotation associated with a uobject
| Object | Object to return the annotation for |
|
inline |
Return the annotation associated with a uobject
| Index | Index of the annotation to return |
|
inline |
Return the annotation associated with a uobject
| Object | Object to return the annotation for |
|
inline |
Return the annotation associated with a uobject. Adds one if the object has no annotation yet.
| Index | Index of the annotation to return |
|
inlinevirtual |
Interface for FUObjectAllocator::FUObjectDeleteListener
| Object | object that has been destroyed |
| Index | index of object that is being deleted |
|
inlineoverridevirtual |
Called when UObject Array is being shut down, this is where all listeners should be removed from it
Implements FUObjectArray::FUObjectDeleteListener.
|
inline |
Removes all annotation from the annotation list.
|
inline |
Removes an annotation from the annotation list.
| Object | Object to de-annotate. |
|
inline |
Removes an annotation from the annotation list.
| Object | Object to de-annotate. |