mirror of
https://github.com/yasirkula/UnityAssetUsageDetector.git
synced 2026-11-19 22:42:37 +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
|
||||
// Note that Transform IEnumerable (children of the transform) is not iterated
|
||||
int index = 0;
|
||||
foreach( object element in (IEnumerable) variableValue )
|
||||
{
|
||||
ReferenceNode searchResult = SearchObject( element );
|
||||
if( searchResult != null )
|
||||
{
|
||||
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
|
||||
PoolReferenceNode( searchResult );
|
||||
}
|
||||
|
||||
index++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user