Skip to content

Commit e97abb4

Browse files
author
wanderer
committed
修复检测单个文件的bug
1 parent 5b149c2 commit e97abb4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

GameFramework/Runtime/Resource/ResourceVersion.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,10 +197,12 @@ public bool UpdateResource(Action<float, double, double, float> callback, Action
197197
/// <param name="callback"></param>
198198
public async void CheckResource(string name, Action<bool,bool> callback)
199199
{
200+
200201
#if UNITY_EDITOR
201202
if (GameFrameworkMode.GetModule<ResourceManager>().ResUpdateType == ResourceUpdateType.Editor)
202203
{
203204
callback?.Invoke(true,false);
205+
return;
204206
}
205207
#endif
206208
name = name.ToLower();

0 commit comments

Comments
 (0)