From 2bd6a02504e7283d458ed3676753d77b1b54ade2 Mon Sep 17 00:00:00 2001 From: Stefan Tscheppe <225873804+stefan-tscheppe@users.noreply.github.com> Date: Wed, 10 Dec 2025 13:59:10 +0100 Subject: [PATCH] Fix typo in property name used for `AssetReference` usage search (#48) --- .../Editor/AssetUsageDetectorSearchFunctions.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Plugins/AssetUsageDetector/Editor/AssetUsageDetectorSearchFunctions.cs b/Plugins/AssetUsageDetector/Editor/AssetUsageDetectorSearchFunctions.cs index c5fe94a..12ef3d9 100644 --- a/Plugins/AssetUsageDetector/Editor/AssetUsageDetectorSearchFunctions.cs +++ b/Plugins/AssetUsageDetector/Editor/AssetUsageDetectorSearchFunctions.cs @@ -187,7 +187,9 @@ namespace AssetUsageDetectorNamespace internal static readonly Func spriteAtlasPackedSpritesGetter = (Func) Delegate.CreateDelegate( typeof( Func ), typeof( SpriteAtlasExtensions ).GetMethod( "GetPackedSprites", BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Static ) ); #if ASSET_USAGE_ADDRESSABLES - private readonly PropertyInfo assetReferenceSubObjectTypeGetter = typeof( AssetReference ).GetProperty( "SubOjbectType", BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance ); + private readonly PropertyInfo assetReferenceSubObjectTypeGetter = + typeof( AssetReference ).GetProperty( "SubObjectType", BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance ) + ?? typeof( AssetReference ).GetProperty( "SubOjbectType", BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance ); #endif #if ASSET_USAGE_VFX_GRAPH