-
-
Notifications
You must be signed in to change notification settings - Fork 0
Logic Filter
Henry de Jongh edited this page Mar 7, 2023
·
5 revisions
Description | Icon |
---|---|
A reactive logic component that passes through an invoked input if the activator passes a filter. |
Name | Description |
---|---|
Match Activator Name | The activator name must match this target name in order to pass the filter. |
Name | Description | Parameter |
---|---|---|
Filter | Passes through the input if the activator passes the filter. |
parameter (string) The parameter to be passed to the output. |
Name | Description | Parameter |
---|---|---|
Passed | Invoked when the activator passed the filter. |
parameter (string) The parameter to be passed to the input. |
Rejected | Invoked when the activator got rejected by the filter. |
parameter (string) The parameter to be passed to the input. |
The outputs pass through the input parameter when not overridden.
This can for example be used to invoke AddInvoke
on a Logic Counter where the caller parameter is passed through as -1
or 1
. If you then use a Logic Trigger and invoke Filter
with a parameter of 1
when a collider enters the trigger and invoke Filter
with a parameter of -1
when a collider exits the trigger, you can count the amount of colliders currently inside of the trigger that passed the filter. This technique prevents having to build several duplicate filters just to invoke different inputs (in this example, duplicating the filter to call SubtractInvoke
on the counter, instead of using the caller parameter with AddInvoke
and a negative value).
Logic Components | Terminology | Programming | External Components | |
---|---|---|---|---|
Logic Animator | Activator | Custom Logic | Reactive Dynamic Light | |
Logic Auto | Caller | Custom Inspector | ||
Logic Branch | Delay | Use Key | ||
Logic Case | Target | |||
Logic Collision Pair | User Inputs | |||
Logic Compare | ||||
Logic Counter | ||||
Logic Destroy | ||||
Logic Filter | ||||
Logic Group | ||||
Logic Instantiate | ||||
Logic Log | ||||
Logic Move Linear | ||||
Logic Relay | ||||
Logic Timer | ||||
Logic Trigger | ||||
Logic Unity |