File tree Expand file tree Collapse file tree
Plugins/AssetUsageDetector Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22using System . Collections . Generic ;
33using System . Reflection ;
44using System . Text ;
5+ using System . Threading . Tasks ;
56using Unity . Collections ;
67using UnityEditor ;
78using UnityEditor . SceneManagement ;
@@ -359,6 +360,10 @@ public static bool IsIgnoredUnityType( this Type type )
359360 if ( typeof ( Type ) . IsAssignableFrom ( type ) || type . Namespace == reflectionNamespace )
360361 return true ;
361362
363+ // Searching Tasks for reference may freeze Unity since Task.Result freezes the active thread if Task hasn't completed yet
364+ if ( typeof ( Task ) . IsAssignableFrom ( type ) )
365+ return true ;
366+
362367 // Searching pointers, ref variables or ref structs for reference throws ArgumentException
363368 if ( type . IsPointer || type . IsByRef || type . IsByRefLike )
364369 return true ;
Original file line number Diff line number Diff line change 1- = Asset Usage Detector (v2.6.0 ) =
1+ = Asset Usage Detector (v2.6.1 ) =
22
33Documentation: https://github.com/yasirkula/UnityAssetUsageDetector
44E-mail: yasirkula@gmail.com
Original file line number Diff line number Diff line change 11{
22 "name" : " com.yasirkula.assetusagedetector" ,
33 "displayName" : " Asset Usage Detector" ,
4- "version" : " 2.6.0 " ,
4+ "version" : " 2.6.1 " ,
55 "documentationUrl" : " https://github.com/yasirkula/UnityAssetUsageDetector" ,
66 "changelogUrl" : " https://github.com/yasirkula/UnityAssetUsageDetector/releases" ,
77 "licensesUrl" : " https://github.com/yasirkula/UnityAssetUsageDetector/blob/master/LICENSE.txt" ,
You can’t perform that action at this time.
0 commit comments