mirror of
https://github.com/yasirkula/UnityAssetUsageDetector.git
synced 2026-11-20 23:12:38 +08:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 96315ec435 |
@@ -1305,16 +1305,19 @@ namespace AssetUsageDetectorNamespace
|
|||||||
{
|
{
|
||||||
// If the field is IEnumerable (possibly an array or collection), search through members of it
|
// If the field is IEnumerable (possibly an array or collection), search through members of it
|
||||||
// Note that Transform IEnumerable (children of the transform) is not iterated
|
// Note that Transform IEnumerable (children of the transform) is not iterated
|
||||||
|
int index = 0;
|
||||||
foreach( object element in (IEnumerable) variableValue )
|
foreach( object element in (IEnumerable) variableValue )
|
||||||
{
|
{
|
||||||
ReferenceNode searchResult = SearchObject( element );
|
ReferenceNode searchResult = SearchObject( element );
|
||||||
if( searchResult != null )
|
if( searchResult != null )
|
||||||
{
|
{
|
||||||
if( searchResult != referenceNode )
|
if( searchResult != referenceNode )
|
||||||
referenceNode.AddLinkTo( searchResult, ( variables[i].isProperty ? "Property (IEnumerable): " : "Variable (IEnumerable): " ) + variables[i].name );
|
referenceNode.AddLinkTo( searchResult, string.Concat( variables[i].isProperty ? "Property: " : "Variable: ", variables[i].name, "[", index + "]" ) );
|
||||||
else
|
else
|
||||||
PoolReferenceNode( searchResult );
|
PoolReferenceNode( searchResult );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
index++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user