概要
Debug.Log( "CheckForCatalogUpdates 開始" );
Addressables.CheckForCatalogUpdates().Completed += checkHandle =>
{
Debug.Log( $"CheckForCatalogUpdates 終了:{checkHandle.Status}" );
var catalogs = checkHandle.Result;
var count = catalogs.Count;
if ( count <= 0 ) return;
foreach ( var catalog in catalogs )
{
Debug.Log( catalog );
}
Debug.Log( "UpdateCatalogs 開始" );
Addressables.UpdateCatalogs( catalogs ).Completed += updateHandle =>
{
Debug.Log( $"UpdateCatalogs 終了:{updateHandle.Status}" );
var locators = updateHandle.Result;
foreach ( var locator in locators )
{
Debug.Log( $"LocatorId:{locator.LocatorId}" );
var keys = locator.Keys;
foreach ( var key in keys.Select( c => c.ToString() ).OrderBy( c => c ) )
{
Debug.Log( key );
}
}
};
};
参考サイト様