Skip to content

Commit 2bcc17b

Browse files
Update Assets/AltTester/Runtime/Commands/FindObject/SelectorConditionController.cs
Co-authored-by: Copilot <[email protected]>
1 parent ecdf6c7 commit 2bcc17b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assets/AltTester/Runtime/Commands/FindObject/SelectorConditionController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ private static GameObject matchConditionForFunction(FunctionCondition functionCo
161161
if (comp == null) continue;
162162
string shortTypeName = getComponentShortName(comp);
163163
if (string.IsNullOrEmpty(shortTypeName)) continue;
164-
if (componentNameFromCondition.Contains(shortTypeName))
164+
if (shortTypeName.Contains(componentNameFromCondition))
165165
return gameObjectToCheck;
166166
}
167167
return null;

0 commit comments

Comments
 (0)