Navigation
API > API/Plugins > API/Plugins/PCG
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 or provided type, create the attribute using the Matching Accessor. The default value of this new attribute will either be the first value get from the provided keys (if provided), the default value of the matching accessor (if it is an attribute) or the zero value (if no matching accessor or not supporting default values). 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 | FPCGCreateAccessorWithAttributeCreationParams |
| Type | struct |
| Header File | /Engine/Plugins/PCG/Source/PCG/Public/Metadata/Accessors/PCGAttributeAccessorHelpers.h |
| Include Path | #include "Metadata/Accessors/PCGAttributeAccessorHelpers.h" |
Syntax
struct FPCGCreateAccessorWithAttributeCreationParams
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bQuiet | bool | Metadata/Accessors/PCGAttributeAccessorHelpers.h | ||
| InData | UPCGData * | Metadata/Accessors/PCGAttributeAccessorHelpers.h | ||
| InExpectedDesc | FPCGMetadataAttributeDesc | Discarded if InMatchingAccessor is not null. | Metadata/Accessors/PCGAttributeAccessorHelpers.h | |
| InMatchingAccessor | const IPCGAttributeAccessor * | Metadata/Accessors/PCGAttributeAccessorHelpers.h | ||
| InMatchingKeysForDefaultValue | const IPCGAttributeAccessorKeys * | Metadata/Accessors/PCGAttributeAccessorHelpers.h | ||
| InSelector | const FPCGAttributePropertySelector * | Metadata/Accessors/PCGAttributeAccessorHelpers.h | ||
| InTypeMatching | EPCGAttributeAccessorFlags | Metadata/Accessors/PCGAttributeAccessorHelpers.h |