mirror of
https://github.com/yasirkula/UnityAssetUsageDetector.git
synced 2026-11-19 14:32:37 +08:00
Sprites assigned to Particle System's Texture Sheet Animation Module are now detected (#26)
Fixed Sprite within Particle System's Texture Sheet Animation not being detected Authored-by: Nika Burimenko <remedy89@gmail.com>
This commit is contained in:
@@ -420,6 +420,16 @@ namespace AssetUsageDetectorNamespace
|
||||
referenceNode.AddLinkTo( SearchObject( triggerModule.GetCollider( i ) ), "Trigger Module: Collider" );
|
||||
}
|
||||
catch { }
|
||||
|
||||
#if UNITY_2017_1_OR_NEWER
|
||||
try
|
||||
{
|
||||
ParticleSystem.TextureSheetAnimationModule textureSheetAnimationModule = particleSystem.textureSheetAnimation;
|
||||
for( int i = 0, j = textureSheetAnimationModule.spriteCount; i < j; i++ )
|
||||
referenceNode.AddLinkTo( SearchObject( textureSheetAnimationModule.GetSprite( i ) ), "Texture Sheet Animation Module: Sprite" );
|
||||
}
|
||||
catch { }
|
||||
#endif
|
||||
}
|
||||
else if( searchRenderers && component is Renderer )
|
||||
{
|
||||
@@ -1407,4 +1417,4 @@ namespace AssetUsageDetectorNamespace
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user