Repository navigation
en assets pipeline
中文 | English | Docs | Repository
The content pipeline turns source files on disk into runtime data that is both usable and traceable back to its origin. The Asset Browser is the interface to that pipeline, and the asset database is its implementation.
| Layer | Content | Location |
|---|---|---|
| Source asset | Files and scripts provided by the user: models, textures, materials, scenes, Prefabs, C#/Lua scripts | Assets/ |
| Import metadata | Identity, version, and import settings per source asset | Asset database |
| Artifact | Runtime data produced by import, carrying platform and encoder information | Content storage |
| Manifest | Describes which artifacts and dependencies one asset produced | Stored with the artifacts |
Source assets are identified by GUID rather than path, so moving or renaming a file keeps references intact. The path is only a hint and a display string.
The Asset Browser provides:
- Hierarchical browsing of folders, source assets, and generated sub-assets
- Name search and type categories
- Type icons and asynchronous thumbnails
- Drag and drop into the scene, onto Inspector fields, or onto objects
- Object reference pickers
- Preview in the Asset View panel
Thumbnails are generated per type: textures, material spheres, model previews, Prefab previews, and a generic icon. A generation failure records a reason and falls back to the type icon instead of leaving a blank entry.
Thumbnail and preview generation is subject to per-frame budgets and caching, so importing a large asset is not a synchronous operation.
Prerequisites: an open project and a source format listed in Models, Meshes, and Textures.
- Select the destination in the Asset Browser and use
Show in explorerto open its disk location, or open the project'sAssets/directly. - Copy the model and its texture dependencies there, preserving relative directories used by the model. When copying from another project, copy source assets rather than its
Library/. - Return to the editor and wait for watcher refresh and import. Read failure diagnostics in the Console; a large model's thumbnail can appear later than its asset entry.
- Expand the model's generated Prefab/mesh/material sub-assets and drag the Prefab into the Hierarchy. Textures can be dragged onto compatible material reference fields.
- Saving changes to the external source triggers incremental import. To force a rebuild, right-click the source asset and choose
Reimport. Do not overwrite generated sub-assets as independent source files.
Expected result: the browser shows the source and applicable sub-assets, the model instance is selectable in the scene, and the Console has no import errors.
Import Here..., Create > Scene, and Create > Material are currently disabled. Import by copying into Assets/; create and save scenes through File. Rename or move existing assets through editor operations and preserve their .meta identity data; moving only the source file can change reference identity.
source file changes
-> asset watcher marks it dirty
-> importer runs with the asset's import settings
-> artifacts are generated and a manifest is written
-> the asset database publishes a new version
-> the editor refreshes references and previews
Import settings are stored per asset. Changing them regenerates artifacts rather than modifying them in place.
The editor exposes a headless prewarm entry point to finish importing before a timing run or a release:
Tools/Performance/Warm-NullusProjectAssets.ps1 -ProjectPath .\TestProject\TestProject.nullusThe script fully imports startup source assets and verifies available disk space. Its one-time migration cost is excluded from startup acceptance timing.
Texture and static mesh import settings are stored as explicit, serializable snapshots:
- Textures: type, color space, alpha, mip, maximum size, resize policy, compression intent, and per-platform overrides.
- Static meshes: LOD group, minimum LOD, automatic LOD screen size, plus per-level source kind, screen size, and mesh data.
Defaults and their effects are in Models, Meshes, and Textures.
C# and Lua scripts are assets in the same pipeline:
- Saving a C# script triggers an incremental build and, on success, a hot reload.
- The script manifest exposes serializable fields to the editor and to serialization.
- Scenes and Prefabs are assets that other assets can reference.
See Scripting Overview.
Project files under Assets/**/Editor/**/*.cs compile into a separate editor assembly that is only loaded in the editor process, where they can register custom Inspectors and tool windows. See Editor Script Extensions.
- Models, Meshes, and Textures covers concrete import settings and build behavior.
- References, Artifacts, and Caches covers dependency tracking and runtime data storage.
Nullus Engine
中文
- 认识 Nullus
- 安装与快速入门
- 使用编辑器
- 场景与对象
- Prefab 工作流
- 资产与内容管线
- 渲染、材质与光照
- 大场景与资源管理
- 游戏逻辑与脚本
- 用户界面
- 动画与角色
- 物理与交互
- 音频、特效与媒体
- AI 与联网
- 平台、构建与发布
- 扩展与引擎架构
- 调试、性能与质量
- 参考手册
- 示例与发展路线
English
- Getting to Know Nullus
- Install and Quick Start
- Using the Editor
- Scenes and Objects
- Prefab Workflow
- Assets and Content Pipeline
- Rendering, Materials, and Lighting
- Large Scenes and Resource Management
- Gameplay and Scripting
- User Interface
- Animation and Characters
- Physics and Interaction
- Audio, Visual Effects, and Media
- AI and Networking
- Platforms, Builds, and Releases
- Extending the Engine
- Debugging, Performance, and Quality
- Reference
- Examples and Roadmap