mirror of https://github.com/tuyoogame/YooAsset
style : Code text indent format
parent
544832c46a
commit
727f356eea
|
@ -36,7 +36,7 @@ namespace YooAsset.Editor
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
AssetBundle newBundle = AssetBundle.LoadFromFile(filePath);
|
AssetBundle newBundle = AssetBundle.LoadFromFile(filePath);
|
||||||
if(newBundle != null)
|
if (newBundle != null)
|
||||||
{
|
{
|
||||||
string[] assetNames = newBundle.GetAllAssetNames();
|
string[] assetNames = newBundle.GetAllAssetNames();
|
||||||
foreach (string name in assetNames)
|
foreach (string name in assetNames)
|
||||||
|
@ -54,7 +54,7 @@ namespace YooAsset.Editor
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static void UnloadAll()
|
public static void UnloadAll()
|
||||||
{
|
{
|
||||||
foreach(var valuePair in _loadedAssetBundles)
|
foreach (var valuePair in _loadedAssetBundles)
|
||||||
{
|
{
|
||||||
if (valuePair.Value != null)
|
if (valuePair.Value != null)
|
||||||
valuePair.Value.Unload(true);
|
valuePair.Value.Unload(true);
|
||||||
|
|
|
@ -103,7 +103,7 @@ namespace YooAsset.Editor
|
||||||
else
|
else
|
||||||
return result.OrderBy(a => a.AssetPath).ToList();
|
return result.OrderBy(a => a.AssetPath).ToList();
|
||||||
}
|
}
|
||||||
else if(_sortMode == ESortMode.AssetType)
|
else if (_sortMode == ESortMode.AssetType)
|
||||||
{
|
{
|
||||||
if (_descendingSort)
|
if (_descendingSort)
|
||||||
return result.OrderByDescending(a => a.AssetType).ToList();
|
return result.OrderByDescending(a => a.AssetType).ToList();
|
||||||
|
@ -143,7 +143,7 @@ namespace YooAsset.Editor
|
||||||
else
|
else
|
||||||
_topBar1.text = $"Asset Path ({_assetListView.itemsSource.Count}) ↑";
|
_topBar1.text = $"Asset Path ({_assetListView.itemsSource.Count}) ↑";
|
||||||
}
|
}
|
||||||
else if(_sortMode == ESortMode.AssetType)
|
else if (_sortMode == ESortMode.AssetType)
|
||||||
{
|
{
|
||||||
if (_descendingSort)
|
if (_descendingSort)
|
||||||
_topBar2.text = "Asset Type ↓";
|
_topBar2.text = "Asset Type ↓";
|
||||||
|
|
Loading…
Reference in New Issue