Source asset formats - Studio-Lovelies/GG-JointJustice-Unity GitHub Wiki
Overview
Various departments work with various file types and tools. This page offers guidelines on how to provide assets to the programmers for integration into Unity.
- Save your original data in a format that is lossless and easy to work with for you and your department
- In addition to your original data, offer a separate export to the programming team in the following formats, to enable easy integration of your assets into Unity
Audio
This applies to both sound effects and music.
| Property | Value | 
|---|---|
| File container | .wav/ lossless.ogg | 
| Channels | 2 (Stereo) | 
| Bits per sample | 24 | 
| Sample rate | 44100 | 
Generally, avoid lossy containers (.mp3) and codecs (Theora).
Music
Seamless loops
To make sure reverb and other decaying effects properly loop, use the following song structure:
- intro (optional)
- one complete loop
- one complete loop again
- outro (optional)
Measure the exact timings of the start of 3. and the start of 4.. If you don't have an outro, use the end of 3. instead.
The game will use these as loop markers.
Measure these points in one of two formats:
- hh:mm:ss.MMM, e.g.:- 3.:- 00:01:37.123
- 4.:- 00:02:18.342
 
- samples
- 3.:- 126345127
- 4.:- 139762386
 
From DAW to Unity
Complete these steps, to get your song ready for integration in Unity:
- Export your song using the properties outlined at the top
- Open your song in mp3tag
- Select View→Extended Tagsand set two tags:- LOOP_STARTwith the value of- 3.
- LOOP_ENDwith the value of- 4.
 
- Save the file
- Upload the file to this Google Drive
- Ping a programmer and let them know the song is ready for integration
Sprites
Backgrounds
| Property | Value | 
|---|---|
| File ending | .png | 
| Width | 320px | 
| Height | 180px | 
Sprites should always be 320x180, even if the actual object is smaller.
| Full image (320x180) | Partial image (still 320x180) | 
|---|---|
This allows easy layering:
Animated Sprites
| Property | Value | 
|---|---|
| Width | 320px x Frame Count | 
| Height | 180px | 
| File ending | .png | 
| Interlacing | Non-interlaced | 
| Color space | RGB with Alpha | 
Animated sprites should be 180px in height and 320px in width per frame.
Example: If you need 5 frames, 320px x 5 frames = 1600px.
To change timings repeat frames inside the source .png file: