Navigation
API > API/Developer > API/Developer/CookMetadata > API/Developer/CookMetadata/FCookMetadataState
Description
Associated DevAR Hash.
This is computed by reading the development asset registry file into a memory buffer and calling ComputeHashOfDevelopmentAssetRegistry on the data.
Use this to ensure that the files you are working with were produced by the same cook and didn't get out of sync somehow.
IMPORTANT If asset registry writeback is enabled during staging, then the hash of the development asset registry changes, and you'll need to check against GetAssociatedDevelopmentAssetRegistryHashPostWriteback. If you don't know which one you have, check both - they are both valid.
e.g. uint64 CheckHash = GetAssociatedDevelopmentAssetRegistryHash(); bValidDevAr = ComputeHashOfDevelopmentAssetRegistry(MakeMemoryView(SerializedAssetRegistry)) == CheckHash;
| Name | SetAssociatedDevelopmentAssetRegistryHash |
| Type | function |
| Header File | /Engine/Source/Developer/CookMetadata/Public/CookMetadata.h |
| Include Path | #include "CookMetadata.h" |
void SetAssociatedDevelopmentAssetRegistryHash
(
uint64 InHash
)