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
- Host: GitHub
- URL: https://github.com/swingcosmic/addressables.net
- Owner: SwingCosmic
- Created: 2023-04-25T01:17:54.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-04-26T01:32:18.000Z (about 3 years ago)
- Last Synced: 2025-10-03T13:39:26.942Z (9 months ago)
- Topics: addressables, assetbundle, dotnet, unity
- Language: C#
- Homepage:
- Size: 22.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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}");
}
```