Skip to main content

Module asset_browser

Module asset_browser 

Source
Expand description

Asset Browser — hierarchical filesystem view of saved SDF models, materials, animations, scenes, and shaders.

§Overview

The asset browser maintains a virtual directory tree rooted at the project’s assets/ folder. It scans on startup and on explicit refresh, building a DirNode tree. Each AssetEntry carries a AssetKind tag, thumbnail metadata, and import/export helpers.

§Interaction

  • Clicking a folder expands/collapses it.
  • Double-clicking an asset opens it in the appropriate editor panel (SDF node editor for .sdf, material painter for .mat, etc.).
  • Right-click opens a context menu: Rename, Duplicate, Delete, Show in Explorer.
  • Drag from browser → viewport/hierarchy creates an instance.
  • The search bar filters by name and tags; results are shown flat.

Structs§

AssetBrowser
Top-level asset browser state.
AssetEntry
Metadata for a single asset file.
AssetFilter
Active filter in the asset browser.
AssetId
DirNode
A node in the virtual directory tree.
DirNodeId
ImportOptions
Options for importing an asset.
ThumbnailData
Simple placeholder for a thumbnail — in a real implementation this would hold a GPU texture handle.

Enums§

AssetKind
The type of an asset file.
SortMode
ViewMode