![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <UObjectAnnotation.h>
Inheritance diagram for FUObjectAnnotationChunked< TAnnotation, bAutoRemove, NumAnnotationsPerChunk >:FUObjectAnnotationChunked is a helper class that is used to store dense, fast and temporary, editor only, external or other tangential information about subsets of 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. The advantage of FUObjectAnnotationChunked is that it can reclaim memory if subsets of UObjects within predefined chunks no longer have any annotations associated with them.
| 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. |
|
inline |
Constructor : Probably not thread safe
|
inlinevirtual |
|
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 |
|
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. |
|
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 number of elements in the array Thread safe, but you know, someone might have added more elements before this even returns
|
inline |
Returns the maximum memory allocated by the internal arrays
|
inline |
Return the number max capacity of the array Thread safe, but you know, someone might have added more elements before this even returns
|
inline |
Return the number max capacity of the array Thread safe, but you know, someone might have added more elements before this even returns
|
inline |
Return if this index is valid Thread safe, if it is valid now, it is valid forever. Other threads might be adding during this call.
| Index | Index to test |
|
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. |
|
inline |
Frees chunk memory from empty chunks.