


assets file has a proper TypeTree (hasTypeTree = true), you can enumerate through AssetsFile::typeTree.pTypes_Unity5 or 4 (header.format >= 0x0D for 5) with fieldCount entries. Create an array of AssetTypeTemplateField* (or just pass a pointer to a AssetTypeTemplateField* and set baseFieldCount to 1) and use that on the AssetTypeInstance constructor.

Then use the ClassDatabaseFile class to read it, locate the class you need using the classId, and then create an AssetTypeTemplateField and call FromClassDatabase with fieldIndex 0. You can use the menu entry Options->Edit Type Package in UABE and export the type database you need from the classdata.tpk file. assets files) or just the type tree inside (for most bundled.

You need to open a FILE* using fopen or similar functions, create an AssetsFile instance with AssetsReaderFromFile and (LPARAM)pFile, create an AssetsFileTable, locate the asset you want with curFileType=28 (you'll need absolutePos and curFileSize members of AssetFileInfoEx), create an AssetTypeInstance and then call ReadTextureFile and GetTextureData.įor the AssetTypeInstance, you'll either need a class database (for most separate. You can take a look at the API (Visual C++ 2010 Release mode only). Enhanced command line support is planned, but it won't be in UABE 2.2. Texture assets have a field that specifies which compression type/pixel format is used.Ĭurrently, the command line is only able to export/import. Do you have any shareable code for this? I'd be doing it in Java, but I know C/C++ as well, so I can easily translate if necessary. Ideally I'd like to be able to do the conversion straight from asset file to PNG directly in my program.Similarly, can batch conversion to PNG be done? Apparently batch extraction can be done through the command line, with a list of file names (or a file, with a list of filenames).I assume the utility can determine this from the asset itself and doesn't rely on filename extension? The assets seem to mostly be dxt5, but I'm unsure.I have some questions regarding a situation I have where I regularly acquire new assets and need to convert them to PNG when I do.
