Contents

SushiEngine::Database::AssetRegistry

resolve

std::optional< std::string > resolve(const AssetId &id) const

Parameters

NameTypeDescription
idconst AssetId &

The id to resolve.

Returns

std::optional< std::string >

The path, or std::nullopt when no tracked asset has this id — including an id a scene references whose asset or .meta no longer exists.

Description

Looks up a tracked asset's current path by its id.