Update FAQ.md

pull/51/head
hevinci 2022-11-28 22:24:36 +08:00
parent d59df4c561
commit efa71c8bb7
1 changed files with 6 additions and 1 deletions

View File

@ -6,6 +6,10 @@
windows平台添加命令: **-force-gles** windows平台添加命令: **-force-gles**
#### 问题Unity2021编辑器运行游戏提示YooAssets is initialized !
尝试关闭Project Setting ---> Editor ---> Enter Play Mode Options
#### 问题YooAsset的DLL引用丢失导致编译报错了 #### 问题YooAsset的DLL引用丢失导致编译报错了
1. 请在PlayerSetting里修改API Level为.NET 4.x或者.NET Framework 1. 请在PlayerSetting里修改API Level为.NET 4.x或者.NET Framework
@ -36,7 +40,8 @@ internal class FsmClearCache : IFsmNode
void IFsmNode.OnEnter() void IFsmNode.OnEnter()
{ {
Debug.Log("清理未使用的缓存文件!"); Debug.Log("清理未使用的缓存文件!");
var operation = YooAssets.ClearUnusedCacheFiles(); var package = YooAssets.GetPackage("DefaultPackage");
var operation = package.ClearUnusedCacheFiles();
operation.Completed += Operation_Completed; operation.Completed += Operation_Completed;
} }