Navigation
API > API/Plugins > API/Plugins/PCG
Description
Utility wrapper around IsChildOf to check if a class passed as argument is compatible with the templated class, which is what the keys are storing. Can only be checked if ObjectType is a UClass or UStruct.
| Name | PCGAttributeAccessorKeys::IsClassSupported |
| Type | function |
| Header File | /Engine/Plugins/PCG/Source/PCG/Public/Metadata/Accessors/PCGAttributeAccessorKeys.h |
| Include Path | #include "Metadata/Accessors/PCGAttributeAccessorKeys.h" |
namespace PCGAttributeAccessorKeys
{
template<typename ObjectType>
bool PCGAttributeAccessorKeys::IsClassSupported
(
const UStruct * InClass
)
}
True if it is supported. False otherwise.
Parameters
| Name | Remarks |
|---|---|
| ObjectType | Class of the underlying object. For example for the points keys, ObjectType will be FPCGPoint. |
| InClass | Class of the requested object. A point property could check that the keys is supporting FPCGPoint. |