mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-05-26 02:30:18 +00:00
update extension sample
This commit is contained in:
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: b1774501eb8484d47b6c9d61585b4cd4
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
using System;
|
||||||
|
using System.IO;
|
||||||
|
using UnityEditor;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
namespace YooAsset.Editor
|
||||||
|
{
|
||||||
|
internal class ClearBuildCacheWindow
|
||||||
|
{
|
||||||
|
[MenuItem("Tools/Clear Build Cache", false, 2)]
|
||||||
|
public static void OpenWindow()
|
||||||
|
{
|
||||||
|
// 清空SBP构建缓存
|
||||||
|
UnityEditor.Build.Pipeline.Utilities.BuildCache.PurgeCache(false);
|
||||||
|
|
||||||
|
// 删除AssetDependDB文件
|
||||||
|
string projectPath = YooAsset.Editor.EditorTools.GetProjectPath();
|
||||||
|
string databaseFilePath = $"{projectPath}/Library/AssetDependencyDB";
|
||||||
|
if (File.Exists(databaseFilePath))
|
||||||
|
{
|
||||||
|
File.Delete(databaseFilePath);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 8bf2d0ddd780f1746b7f1c7e0f9959e0
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
Reference in New Issue
Block a user