mirror of
https://github.com/yasirkula/UnityAssetUsageDetector.git
synced 2026-11-19 14:32:37 +08:00
Update AssetUsageDetector.cs
bugfix for a NullReferenceException
This commit is contained in:
committed by
GitHub
parent
0d386e6ab2
commit
1f97011df8
@@ -619,7 +619,10 @@ public class AssetUsageDetector : EditorWindow
|
||||
for( int i = 0; i < components.Length; i++ )
|
||||
{
|
||||
Component component = components[i];
|
||||
|
||||
|
||||
if( component == null )
|
||||
continue;
|
||||
|
||||
// Ignore Transform component (no object field to search for)
|
||||
if( component is Transform )
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user