Luna::Asset::load_asset_default_data

RV load_asset_default_data(asset_t asset, bool force_reload=false)

Creates one asset data object for the asset by loading default asset data.

Parameters

  • in asset

    The asset handle of the asset to operate.

  • in force_reload

    If this is true, this function always loads the asset data even if the asset is in loaded state, and the existing asset data object will be replaced with new asset data object. If this is false, this function returns directly if the asset is already in loaded state, and the existing asset data object will not be changed.