Skip to content
Peter Shinners edited this page Apr 18, 2021 · 5 revisions
bool isAssetId(
    const std::string& str
)

Determine if a string represents and assetId.

This should only check that the string is a properly formatted assetId. It should not do any lookups to ensure the assetId exists. The resolveAsset method is used to determine if an assetId actually exists and how to convert to a path.

Katana will still pass strings to other method assetId arguments without checking with this method first to see if the text actually is an assetId. Other methods like getAssetAttributes still need to ensure their assetId argument is a valid assetId.