File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
GameFramework/Editor/AssetManagement Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ private static void RunAssetFileWatcher()
21
21
{
22
22
//Debug.Log($"AssetFileWatcher.RunAssetFileWatcher");
23
23
_fileWatcher = new FileSystemWatcher ( ) ;
24
- _fileWatcher . Path = Path . Combine ( Application . dataPath , "Game" ) ;
24
+ _fileWatcher . Path = Path . Combine ( Application . dataPath ) ;
25
25
_fileWatcher . IncludeSubdirectories = true ;
26
26
27
27
_fileWatcher . Created += ( sender , e ) => { UpdateAddressables ( e ) ; } ;
@@ -49,7 +49,9 @@ private static void UpdateAddressables(FileSystemEventArgs e)
49
49
//Debug.Log($"File watcher: {e.FullPath}");
50
50
if ( _isRuning )
51
51
return ;
52
- _isRuning = true ;
52
+ string fullPath = e . FullPath . Replace ( "\\ " , "/" ) ;
53
+ if ( fullPath . Contains ( "Assets/Game" ) )
54
+ _isRuning = true ;
53
55
}
54
56
}
55
57
}
You can’t perform that action at this time.
0 commit comments