We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b77dad0 + 6700808 commit e307c28Copy full SHA for e307c28
Scripts/Runtime/Core/CollectionItemQuery.cs
@@ -37,6 +37,8 @@ public override string ToString()
37
[SerializeField]
38
private QuerySet[] query = Array.Empty<QuerySet>();
39
40
+ private HashSet<LongGuid> targetGuids = new HashSet<LongGuid>(128);
41
+
42
public bool Matches(params T[] targetItems)
43
{
44
return Matches(targetItems, out _);
@@ -63,7 +65,7 @@ public override string ToString()
63
65
64
66
public bool Matches(IEnumerable<T> targetItems, out int resultMatchCount)
67
- HashSet<LongGuid> targetGuids = new HashSet<LongGuid>();
68
+ targetGuids.Clear();
69
foreach (T item in targetItems)
70
71
if (item)
0 commit comments