Navigation
API > API/Plugins > API/Plugins/PCG
Description
Creates an accessor to the property or attribute pointed at by the InSelector. If the selector points to a base attribute and the attribute doesn't exist or the types doesn't match with the Matching Accessor, create the attribute using the Matching Accessor. Note that InData must not be null if the selector points to an attribute, but in the case of properties, it either has to be the appropriate type or null. Make sure to update your selector before-hand if you want to support "@Source". Otherwise the creation will fail.
| Name | PCGAttributeAccessorHelpers::CreateAccessorWithAttributeCreation |
| Type | function |
| Header File | /Engine/Plugins/PCG/Source/PCG/Public/Metadata/Accessors/PCGAttributeAccessorHelpers.h |
| Include Path | #include "Metadata/Accessors/PCGAttributeAccessorHelpers.h" |
| Source | /Engine/Plugins/PCG/Source/PCG/Private/Metadata/Accessors/PCGAttributeAccessorHelpers.cpp |
namespace PCGAttributeAccessorHelpers
{
TUniquePtr < IPCGAttributeAccessor > PCGAttributeAccessorHelpers::CreateAccessorWithAttributeCreation
(
UPCGData * InData,
const FPCGAttributePropertySelector & InSelector,
const IPCGAttributeAccessor * InMatchingAccessor,
EPCGAttributeAccessorFlags InTypeMatching,
bool bQuiet
)
}