FCookMetadataState::SetAssociatedDevelopmentAssetRegistryHash

Associated DevAR Hash.

Unreal Engine C++ API Reference > Developer > CookMetadata > FCookMetadataState

References

   
Module CookMetadata
Header /Engine/Source/Developer/CookMetadata/Public/CookMetadata.h
Include #include "CookMetadata.h"
void SetAssociatedDevelopmentAssetRegistryHash
(
    uint64 InHash
)

Remarks

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.

e.g. uint64 CheckHash = GetAssociatedDevelopmentAssetRegistryHash(); bValidDevAr = ComputeHashOfDevelopmentAssetRegistry(MakeMemoryView(SerializedAssetRegistry)) == CheckHash;


Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library