Importing
Three kinds of import
Section titled “Three kinds of import”Import turns a file you made elsewhere into game files, already linked together. It’s in the Project window’s toolbar, on its right-click menu, and under Assets:
| Import | Reads | Makes |
|---|---|---|
| Image | PNG, JPEG, TGA, BMP | a texture |
| Audio | WAV, MP3, OGG, FLAC, M4A, AAC, Opus | a clip in the folder’s sound bank |
| GLB | a GLB from Blender or any 3D program | a model and everything it needs (below) |
Assets▸Import CtrlI opens the same choice. You can also drag files straight from your desktop onto a folder in the Project window. Import several at once and it’s still one step, and one undo.
Images and audio are named after their file and ask nothing more.
What a GLB turns into
Section titled “What a GLB turns into”A GLB is a whole 3D asset in one file, and Studio turns it into a whole linked set:
| Studio makes | From the GLB’s | Linked to |
|---|---|---|
| Textures | embedded images | |
| Material instances, one per material | materials | their textures |
| A mesh | geometry | |
| A model | the whole thing | the mesh, and each slot to the material of the same name |
| Animation clips | animations | the mesh’s skeleton |
| An animation tree | animations | the clips, one state each |
| A driver script | animations | the tree, to put on the entity |
A form lets you pick which of these to make. Rows depend on each other (a model needs its mesh, clips need a skeleton), so ticking one ticks what it needs. Rows that would make nothing are hidden: a GLB with no animation offers no clips.
Every material is built on the game’s main shader, which reads a GLB’s base colour, normal map, roughness and metalness, occlusion and emission.
Preparing a model
Section titled “Preparing a model”Most import problems are decided before you export. In Blender:
- Model at game size: centimetres, Z up. A character is about 154 units tall. Nothing is converted on the way in.
- Apply scale: don’t leave a scale on the object; apply it to the mesh.
- UV unwrap it, even without textures.
- Name the materials the way you want the model’s slots named.
For replacing a shipped model, start from the game’s own: select the model and use Assets▸Export Modding Assets…. It saves a GLB with the model’s skeleton and a starter object carrying the right material slots, already named. Build your mesh in its place and the names line up by themselves.
Replacing what you imported
Section titled “Replacing what you imported”Changed your model or image? Don’t import it again as a new file. Use Assets▸Replace on the mesh or texture the import made: it rebuilds that one file from the new source and keeps its identity, so every model, level and material using it picks up the change. (A GLB’s whole set can’t be replaced in one go; replace the mesh, then use Assets▸Sync Slots & LODs from Mesh on the model if its slots changed.)
