Skip to content

Extract asset from .assets archive #134

Answered by nesrak1
martanius asked this question in Q&A
Discussion options

You must be logged in to vote

I don't think there's a built in method to export an asset to byte array, but you can use this code from UABEA: https://github.com/nesrak1/UABEANext/blob/fcb4f8a0313e341121bb98e6bc4bd3b4d7417afa/UABEANext4/Logic/ImportExport/AssetExport.cs#L20-L33 and make _stream a new MemoryStream or something.

DumpRawAsset(afile.Reader, info.GetAbsoluteByteOffset(afile), info.ByteSize);

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@martanius
Comment options

@nesrak1
Comment options

Answer selected by martanius
@nesrak1
Comment options

@martanius
Comment options

@martanius
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants