mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-05-30 05:28:46 +00:00
update shader variant collector
This commit is contained in:
@@ -231,14 +231,12 @@ namespace YooAsset.Editor
|
|||||||
{
|
{
|
||||||
foreach(var go in _allSpheres)
|
foreach(var go in _allSpheres)
|
||||||
{
|
{
|
||||||
var mat = go.GetComponent<Renderer>().sharedMaterial;
|
|
||||||
Resources.UnloadAsset(mat);
|
|
||||||
GameObject.DestroyImmediate(go);
|
GameObject.DestroyImmediate(go);
|
||||||
}
|
}
|
||||||
_allSpheres.Clear();
|
_allSpheres.Clear();
|
||||||
|
|
||||||
// 尝试释放编辑器加载的资源
|
// 尝试释放编辑器加载的资源
|
||||||
Resources.UnloadUnusedAssets();
|
EditorUtility.UnloadUnusedAssetsImmediate();
|
||||||
}
|
}
|
||||||
private static void CreateManifest()
|
private static void CreateManifest()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user