Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This computes the CRC32 that Unity uses as the Asset Bundle Manifest CRC32, for purposes of comparing a file against a known CRC32, to make sure that the bundle was downloaded properly.
This is ... a very quick and dirty hack, because this will only compute the asset bundle CRC32 for compressed assets that were added a certain way. It's probably desirable to compute the CRC32 in all cases if you wish to add it at all, but I wanted to submit some sample code as an RFE instead of just begging for free development.
It looks like for non-compressed assets we don't pre-read them on parse, so would you mind suggesting a better location in the code to calculate this CRC32?
thanks,
--js