![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <VVMCustomAttributeHandler.h>
Public Member Functions | |
| virtual COREUOBJECT_API | ~ICustomAttributeHandler () |
| virtual COREUOBJECT_API bool | ProcessAttribute (const CAttributeValue &Payload, UStruct *UeStruct, TArray< FString > &OutErrorMessages) |
| virtual COREUOBJECT_API bool | ProcessAttribute (const CAttributeValue &Payload, FProperty *UeProperty, TArray< FString > &OutErrorMessages) |
| virtual COREUOBJECT_API bool | ProcessAttribute (const CAttributeValue &Payload, UFunction *UeFunction, TArray< FString > &OutErrorMessages) |
| virtual COREUOBJECT_API bool | ProcessAttribute (const CAttributeValue &Payload, UEnum *UeEnum, TArray< FString > &OutErrorMessages) |
Static Public Member Functions | |
| static COREUOBJECT_API ICustomAttributeHandler * | FindHandlerForAttribute (const FName AttributeName) |
Static Protected Attributes | |
| static COREUOBJECT_API TMap< FName, ICustomAttributeHandler * > | AttributeHandlers |
Any Verse attribute that has the attribute @customattribhandler will attempt to call back into native code at UClass construction time, which should be handled by an implementation of this interface.
In general, these handlers should be implemented in the native module corresponding to the Verse module that declares the custom attribute. In StartupModule() in that module, the handler should add itself to the AttributeHandlers map, and when UClasses are constructed, any custom attributes with registered names will be processed. When the instance is cleared, the handler is unregistered automatically in the destructor.
|
virtual |
|
static |
Static helper to search for a handler registered for a given custom attribute name
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Handlers to be implemented by each custom attribute, for each type that custom attributes can be applied to. Returns false if we were unable to process for the specified name, and implies the linker task will retry again until it succeeds.
|
staticprotected |
A static map of the name of the custom attribute, to the handler responsible for processing it