Asset Manager
Overview
The Asset Manager provides centralized asset loading and caching. Each asset file is loaded only once — subsequent references use the cached version automatically.
Using Assets in the Editor
Asset Browser
The Asset Browser panel displays all files in your project directory. Use it to browse and select models, textures, scripts, and other assets.
Adding Models to the Scene
There are two ways to add a model to an entity:
- Drag and drop — drag a
.glbfile from the Asset Browser into the scene - Inspector — select an entity, click Add Component > ModelRenderer, and set the model path
Procedural Primitives
You can use built-in 3D shapes without any external model files. Add a ModelRenderer component and use a primitive path:
Primitives are cached the same way as file-based models.
Supported Asset Types
Integration Notes
- Assets are loaded on demand and cached automatically
- The assets directory is set automatically from the project configuration
- Procedural primitives (
primitive:*paths) are generated in memory and cached like file-based models