Skip to main content

Module asset_pane

Module asset_pane 

Source
Expand description

Inspector asset-metadata pane.

When the user selects an asset in the browser, the Properties panel switches from per-entity component cards to this pane: file metadata, source path, and a couple of OS-level actions (Reveal in Explorer, Open Externally). Phase 5 entry β€” per-type preview cards (texture image, mesh stats, audio duration) come in a follow-up.

FunctionsΒ§

days_to_ymd πŸ”’
Convert days since the Unix epoch to (year, month, day). Used only for the Inspector mtime label.
format_mtime πŸ”’
format_size πŸ”’
paint_asset_header
Header line for asset mode β€” re-uses the entity Inspector header widget so the visual rhythm matches.
paint_kv_row πŸ”’
One row of β€œkey β€” value” inside the metadata card.
render_asset_pane
Render the asset metadata pane. Returns the y coordinate after the last painted block.