Skip to content

Lesson 6 of 9 · 24m

The Asset Pipeline: Imports, Organization, and Addressables

Control textures, audio, models, and project organization so imports remain predictable, memory stays bounded, and builds stop surprising you.

The asset pipeline is where programmer assumptions meet artist reality. A texture that looks harmless in the Inspector can be a 64 MB uncompressed monster in memory. A folder named New Folder (17) can become a production dependency. Unity will happily import almost anything; shipping requires you to decide what the import means.

Import settings are production settings

Texture settings control size, compression, filtering, and memory:

Texture Type:      Sprite (2D and UI)
Max Size:          2048
Compression:       Normal Quality
Filter Mode:       Bilinear
Generate Mipmaps:  off for most UI, on for world textures

A 4096×4096 uncompressed RGBA texture is roughly 67 MB before mips. The file size on disk is not the runtime memory cost. Compression formats matter because they affect both memory and GPU upload.

Pivot and pixels-per-unit define behavior

For 2D work, Pixels Per Unit connects art resolution to world scale. Pick a standard early — often 16, 32, or 100 depending on the project — and enforce it. If one sprite uses 16 and another uses 100, collision sizes and movement speeds become nonsense even when the art looks right.

Sprite pivots matter too. A character pivot at the feet simplifies ground placement; a projectile pivot at the center simplifies rotation. Consistency beats purity.

Organize by meaning, not by file type alone

A small project can survive this:

Assets/
  Art/
  Audio/
  Data/
  Materials/
  Prefabs/
  Scenes/
  Scripts/
  Settings/

A larger project often needs feature folders so related code, prefabs, data, and tests move together. The worst organization is accidental: assets under Downloads, duplicate folders from package extraction, and no ownership rules.

Know what enters a build

Scenes in Build Settings and assets reachable through references are included. Assets in Resources are included whether referenced or not. Resources looks convenient and becomes a memory and dependency black hole:

var clip = Resources.Load<AudioClip>("Sounds/laser");

That pattern makes every matching asset build-relevant and hides dependency graphs. Prefer serialized references for a small game.

Addressables solve a later problem

Addressables give assets stable runtime keys and support remote or local content bundles:

var handle = Addressables.LoadAssetAsync<GameObject>("enemy_boss");
await handle.Task;
Instantiate(handle.Result);

They are powerful when content needs patching, memory needs explicit unload, or catalog size exceeds a simple build. They also add operational complexity: catalogs, groups, build scripts, cache behavior, and release discipline. Do not adopt them because a tutorial called them modern.

Audio import is not an afterthought

Short effects should generally decompress in memory for low latency. Long music tracks should stream. Voice belongs somewhere in between depending on platform and memory. Wrong audio settings create hitches that feel like gameplay bugs.

Field notes

  • Use consistent naming: lowercase, hyphens or underscores, no spaces if your build automation dislikes them.
  • Normalize sprites atlases deliberately; automatic packing behavior can change memory and draw-call performance.
  • Keep source art outside Assets unless the project intentionally versions source files; imports should be derived, reproducible artifacts.
  • Inspect memory with real target hardware. Editor memory is generous and forgiving in ways a mobile device is not.

Was this lesson helpful?

Sign in to rate