mirror of
https://github.com/yasirkula/UnityAssetUsageDetector.git
synced 2026-11-19 14:32:37 +08:00
Update AssetUsageDetector.cs
minor bugfix
This commit is contained in:
committed by
GitHub
parent
74829e85de
commit
ec7e7782ef
@@ -1735,6 +1735,9 @@ namespace AssetUsageDetectorNamespace
|
||||
// Check if the asset is used in this component
|
||||
private ReferenceNode SearchComponent( Component component )
|
||||
{
|
||||
if( component == null || component.Equals( null ) )
|
||||
return null;
|
||||
|
||||
// Ignore Transform component (no object field to search for)
|
||||
if( component is Transform )
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user