diff --git a/Plugins/AssetUsageDetector/Editor/Utilities.cs b/Plugins/AssetUsageDetector/Editor/Utilities.cs index 98d4234..fa8c0b3 100644 --- a/Plugins/AssetUsageDetector/Editor/Utilities.cs +++ b/Plugins/AssetUsageDetector/Editor/Utilities.cs @@ -177,6 +177,12 @@ namespace AssetUsageDetectorNamespace selection = objTR.gameObject; #endif } + else if( prefabAssetType == PrefabAssetType.Model ) + { + objTR = ( (GameObject) obj ).transform; + while( objTR.parent != null && objTR.parent.parent != null ) + objTR = objTR.parent; + } #else Transform objTR = ( (GameObject) obj ).transform; while( objTR.parent != null && objTR.parent.parent != null )