We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c950c1b commit 6700808Copy full SHA for 6700808
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