Navigation
API > API/Developer > API/Developer/CookMetadata > API/Developer/CookMetadata/FCookMetadataPluginHierarchy
The list of custom field names. The values stored on an entry index in to this for the name. These values are copied from the plugins' json descriptor to allow for carrying through project specific data in to the metadata.
To enable custom field replication, add the CookMetadataCustomPluginFields section to the relevant Editor.ini file and add to the follow arrays, as desired:
BoolFields, StringFields, PerPlatformBoolFields, PerPlatformStringFields
Bool and String refer to the json type, and will emit as bool or FString here. The PerPlatform arrays will check in the uplugin json for a field named PerPlatform
[CookMetadataCustomPluginFields] +PerPlatformBoolFields = ExampleProjectBool +StringField = ExampleProjectString
Will look in the uplugin file for this: "ExampleProjectBool": true "PerPlatformExampleProjectBool": [ { "Platform": "Windows", "Value": false } ] "ExampleProjectString": "AProjectString"
Note that in the per platform case, the base value is not required (i.e. ExampleProjectBool above), however it provides a default value for unlisted platforms. If it does not exist, false is used for bool fields, and an empty string for string fields.
| Name | FCustomFieldEntry |
| Type | struct |
| Header File | /Engine/Source/Developer/CookMetadata/Public/CookMetadata.h |
| Include Path | #include "CookMetadata.h" |
Syntax
struct FCustomFieldEntry
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Name | FString | CookMetadata.h | ||
| Type | ECookMetadataCustomFieldType | CookMetadata.h |