An open API service indexing awesome lists of open source software.

https://github.com/swingcosmic/addressables.net

A standalone version of Unity.Addressables for extracting addressable assets
https://github.com/swingcosmic/addressables.net

addressables assetbundle dotnet unity

Last synced: about 2 months ago
JSON representation

A standalone version of Unity.Addressables for extracting addressable assets

Awesome Lists containing this project

README

          

# Addressables.NET

A standalone version of `Unity.Addressables` for extracting addressable assets.

Addressables.NET is targeting `.NET Standard 2.1` and have removed any Unity-specific code, retaining only the necessary code for reading addressables metadata.

It provides alternative APIs or placeholder methods to replace unsupported APIs (such as Unity's JSON serialization).

**⚠️This library CANNOT do assets extraction, you need an extra lib to extract assetbundles like [AssetsTools.NET](https://github.com/nesrak1/AssetsTools.NET).**

## Quick Start

Before extracting assets, you need to locate the `catalog.json` file. Typically, for Android APKs, it is located at `assets/aa/catalog.json`.

```csharp
var catalogjson = File.ReadAllText("path/to/catalog.json");
var catalogData = JsonConvert.DeserializeObject(catalogjson);
var map = catalogData.CreateLocator();
foreach (var (key, locations) in map.Locations)
{
var locationKeys = string.Join(",", locations.Select(x => x.PrimaryKey));
Console.WriteLine($"{key}: {locationKeys}");
}

```