https://github.com/eai04191/lo-atlas-extractor
A simple script to extract an icon from an atlas extracted from Last Origin data using AssetStudio.
https://github.com/eai04191/lo-atlas-extractor
lastorigin
Last synced: 25 days ago
JSON representation
A simple script to extract an icon from an atlas extracted from Last Origin data using AssetStudio.
- Host: GitHub
- URL: https://github.com/eai04191/lo-atlas-extractor
- Owner: eai04191
- Created: 2021-12-31T08:08:59.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-12-31T16:36:02.000Z (over 3 years ago)
- Last Synced: 2025-02-08T00:28:18.722Z (3 months ago)
- Topics: lastorigin
- Language: TypeScript
- Homepage:
- Size: 22.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

lo-atlas-extractor
A simple script to extract an icon from an atlas extracted from Last Origin data using AssetStudio.## Usage
How to save Last Origin data to PC is not explained here. You can find out using the Internet.
1. Determine the atlas from which you want to extract the icon. You can see what is in which file by loading the `UnityCache/Shared/atlas` folder into AssetStudio and looking at Texture2D.
This time, we will extract it from the atlas of this item icons.

2. Then filter by filename + `.prefab` to see Texture2D and MonoBehaviour. All you need is these two.
Make sure Sprite is not included. If Sprite is included, a file with the same name will be output, so you will not know which is Texture2D and which is Sprite.

3. Before exporting, open **Options -> Export options** and set **Group exported assets by** to **do not group**.

4. Now, make sure that only Texture2D and MonoBehaviour are filtered, then run **Export -> Filtered assets**.

5. Since json and png are output, make the file name of json the same as png.


6. Finally, the script comes into play!
Put json and png in `data/`. You can have multiple atlases.

7. I will omit the explanation of the setup of node.js and yarn.
If you are using the script for the first time, install the dependency with `yarn`.
8. Run it with `yarn start` when you are ready.
It may take some time, so please wait until **Done** is displayed.

9. If there is no problem, it should be output to the out folder. This is the end of the long Usage journey.

## License
MIT License