Navigation
API > API/Runtime > API/Runtime/CoreUObject
Interface for native processing of Verse Custom Attributes
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.
| Name | ICustomAttributeHandler |
| Type | class |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/VerseVM/VVMCustomAttributeHandler.h |
| Include Path | #include "VerseVM/VVMCustomAttributeHandler.h" |
Syntax
class ICustomAttributeHandler
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~ICustomAttributeHandler() |
VerseVM/VVMCustomAttributeHandler.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| AttributeHandlers | TMap< FName, ICustomAttributeHandler * > | A static map of the name of the custom attribute, to the handler responsible for processing it | VerseVM/VVMCustomAttributeHandler.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool ProcessAttribute
(
const CAttributeValue& Payload, |
Handlers to be implemented by each custom attribute, for each type that custom attributes can be applied to. | VerseVM/VVMCustomAttributeHandler.h | |
virtual bool ProcessAttribute
(
const CAttributeValue& Payload, |
VerseVM/VVMCustomAttributeHandler.h | ||
virtual bool ProcessAttribute
(
const CAttributeValue& Payload, |
VerseVM/VVMCustomAttributeHandler.h | ||
virtual bool ProcessAttribute
(
const CAttributeValue& Payload, |
VerseVM/VVMCustomAttributeHandler.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static ICustomAttributeHandler * FindHandlerForAttribute
(
const FName AttributeName |
Static helper to search for a handler registered for a given custom attribute name | VerseVM/VVMCustomAttributeHandler.h |