Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
Jepplen's avatar
Jepplen
Expert Protege
2 years ago

DLC version control

Hi,

What is the norm for DLC version control?
As in, I want to be able to check if a DLC is updated and then re-download the file if applicable.

I can think of two solutions, but I think both are quite crude and don't like them.

1. Save the current version locally on the device using PlayerPrefs and use the meta data field and in the add-on to compare versions, but there must be a better way.

2. Keep a DlcManifest in the streaming assets folder that keeps track of skus and assetIds and then compare if the current assetId from the IAP api matches the assetId in the DlcManifest.

Both mean some manual labor, which I don't like because that can easily introduce mistakes.

 

So, what other options are there?

 

1 Reply

Replies have been turned off for this discussion
  • Jepplen's avatar
    Jepplen
    Expert Protege

    In point 2 I meant to write: Saving the the latest AssetId of the latest downloaded DLC AssetId of a sku and then use that to compare with the current AssetId collected from the IAP api.