https://github.com/chrispritchard/unityspritemetaparser
Simple project to pull the name, x, y, width and height values out of a sprite map meta file from Unity.
https://github.com/chrispritchard/unityspritemetaparser
dotnet-core fsharp unity
Last synced: about 2 months ago
JSON representation
Simple project to pull the name, x, y, width and height values out of a sprite map meta file from Unity.
- Host: GitHub
- URL: https://github.com/chrispritchard/unityspritemetaparser
- Owner: ChrisPritchard
- License: unlicense
- Created: 2018-07-11T21:48:17.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-12T02:37:32.000Z (almost 8 years ago)
- Last Synced: 2025-12-26T15:13:03.189Z (6 months ago)
- Topics: dotnet-core, fsharp, unity
- Language: F#
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# UnitySpriteMetaParser
Simple project to pull the name, x, y, width and height values out of a sprite map meta file from Unity.
## Use Case
- You have an old unity project, or are using Unity as a tool.
- In unity you can add images as sprites, then use an editor to specify different frames for animation.
- These frames amount to x, y, width and height values, and are stored in a detailed YAML file.
- This project reads such a YAML file, extracts the name, x, y, width and height of each 'frame', and outputs the result as a CSV
In Unity Meta files, the Y axis is bottom-up. This program inverts this: a Y of 164 with a 16 height in a 216 pixel image becomes a Y of (216 - 164 - 16) = 36)
## Instructions
Run using at least the path to the meta file. You can option specify a second argument containing the output csv file path.
## Samples
Sample input and output files can be found under /samples. The knight image is from (and all credit to Master484) [here](https://opengameart.org/content/mini-knight).