Skip to content

Fix MatchAll with NotExact check#367

Open
Bargestt wants to merge 1 commit intoMothCocoon:5.xfrom
Bargestt:FixMatchAll
Open

Fix MatchAll with NotExact check#367
Bargestt wants to merge 1 commit intoMothCocoon:5.xfrom
Bargestt:FixMatchAll

Conversation

@Bargestt
Copy link
Copy Markdown
Contributor

@Bargestt Bargestt commented Apr 11, 2026

FindComponents with filter MatchAll ignores bExactMatch and always checks Exact tag
I'm not sure how intended is this, or maybe it works as intended and I'm seeing things?
Anyways,if it is indeed a bug, here is the fix

Here is example of the problem I'm talking about

// This one matches all flow components on scene. Works as intended
Tags: Flow | Type: Any, Exact: false
  Cube_Flow_1                    Tags: Flow.Object.1
  Cube_Flow_12B                  Tags: Flow.Object.1, Flow.Object.2, Flow.Modifier.B
  Cube_Flow_1A                   Tags: Flow.Object.1, Flow.Modifier.A
  
// Exact match both tags. Works as intended
Tags: Flow.Object.1, Flow.Modifier.A | Type: All, Exact: true
   Cube_Flow_1A                   Tags: Flow.Object.1, Flow.Modifier.A

// Match Any. Works as intended
Tags: Flow.Object | Type: Any, Exact: false
  Cube_Flow_1                    Tags: Flow.Object.1
  Cube_Flow_12B                  Tags: Flow.Object.1, Flow.Object.2, Flow.Modifier.B
  Cube_Flow_1A                   Tags: Flow.Object.1, Flow.Modifier.A

// This one should have been identical to previous because we are matching using 1 tag
Match. Tags: Flow.Object Type: All Exact: false

Editor example.
OnActorRegistered MatchAll should have triggered with selected cube, but it didn't
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant