-
-
Notifications
You must be signed in to change notification settings - Fork 0
Logic Case
Henry de Jongh edited this page Mar 11, 2023
·
5 revisions
Description | Icon |
---|---|
A reactive logic component that matches the input parameter to a list of cases and invokes the associated output. |
Name | Description |
---|---|
Cases | The list of cases each with Value to be matched and the Name of the output. The Name will be invoked as Case[Name] when the input parameter matches the Value. |
Name | Description | Parameter |
---|---|---|
Invoke | Invokes a case output matching the string parameter. |
parameter (string) The parameter value to match against the case values. |
Random | Invokes a random case output (even with no configured cases this never invokes Default). |
parameter (string) The parameter to be passed to the output. |
RandomExclusive | Invokes a random case output excluding the last random case output (even with no configured cases this never invokes Default). This prevents the same case from getting invoked twice in a row (unless there is only one configured case). |
parameter (string) The parameter to be passed to the output. |
RandomShuffle | Invokes a random case output as a shuffled deck of cards, so that each case must occur in random order before it resets and shuffles another deck of cards (even with no configured cases this never invokes Default). |
parameter (string) The parameter to be passed to the output. |
Name | Description | Parameter |
---|---|---|
Case[Name] | Invoked when the input parameter matched a certain case. |
parameter (string) The parameter that was passed to the input. |
Default | Invoked when no case output matched the input parameter. |
parameter (string) The parameter that was passed to the input. |
The parameter matching is done as a string, so if you specify one of the cases to be 1.50
, it won't match a float 1.5
because that is not literally the string 1.50
.
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 |