-
-
Notifications
You must be signed in to change notification settings - Fork 0
Logic Counter
Henry de Jongh edited this page Mar 8, 2023
·
8 revisions
Description | Icon |
---|---|
A reactive logic component that stores, manipulates and outputs a numerical value. |
Name | Description |
---|---|
Initial Value | The initial value of the counter. |
Clamp Min | This is the minimum value of the counter. It cannot go below this value. If both Clamp Min and Clamp Max are set to zero, no clamping will occur. |
Clamp Max | This is the maximum value of the counter. It cannot go above this value. If both Clamp Min and Clamp Max are set to zero, no clamping will occur. |
Frozen | Whether the counter value is frozen so that it cannot be changed by inputs. |
Name | Description | Parameter |
---|---|---|
Add | Adds the float parameter to the counter without invoking the output. |
amount (float) The number to be added to the counter. |
AddInvoke | Adds the float parameter to the counter and invokes the output with the result. |
amount (float) The number to be added to the counter. |
Multiply | Multiplies the counter by the float parameter without invoking the output. |
amount (float) The number to multiply the counter with. |
MultiplyInvoke | Multiplies the counter by the float parameter and invokes the output with the result. |
amount (float) The number to multiply the counter with. |
Divide | Divides the counter by the float parameter without invoking the output. If this causes a division by zero then the counter value will be unchanged. |
amount (float) The number to divide the counter with. |
DivideInvoke | Divides the counter by the float parameter and invokes the output with the result. If this causes a division by zero then the counter value will be unchanged. |
amount (float) The number to divide the counter with. |
Subtract | Subtracts the float parameter from the counter without invoking the output. |
amount (float) The number to be subtracted from the counter. |
SubtractInvoke | Subtracts the float parameter from the counter and invokes the output with the result. |
amount (float) The number to be subtracted from the counter. |
SetValue | Sets the counter to the float parameter without invoking the output. |
amount (float) The number the counter will be set to. |
SetValueInvoke | Sets the counter to the float parameter and invokes the output with the result. |
amount (float) The number the counter will be set to. |
SetMin | Sets the minimum value of the counter to the float parameter without invoking the output. |
amount (float) The minimum number the counter can be set to. If both min and max are set to zero, no clamping will occur. |
SetMinInvoke | Sets the minimum value of the counter to the float parameter and invokes the output with the result. |
amount (float) The minimum number the counter can be set to. If both min and max are set to zero, no clamping will occur. |
SetMax | Sets the maximum value of the counter to the float parameter without invoking the output. |
amount (float) The maximum number the counter can be set to. If both min and max are set to zero, no clamping will occur. |
SetMaxInvoke | Sets the maximum value of the counter to the float parameter and invokes the output with the result. |
amount (float) The maximum number the counter can be set to. If both min and max are set to zero, no clamping will occur. |
Freeze | Freezes the counter value so that it cannot be changed by inputs. This makes the counter read-only, which is very useful for the SetMin and SetMax operations, which would otherwise always forcibly clamp the value before you could set the other field. | None |
Unfreeze | Unfreezes the counter value so that it can be changed by inputs. | None |
Invoke | Invokes the output with the current value of the counter. |
Name | Description | Parameter |
---|---|---|
Invoked | Invoked when an operation on the current value of the counter finished. |
parameter (float) The current value of the counter. |
ReachedMin | Invoked when clamping is active and the counter reached the minimum value. |
parameter (float) The current value of the counter (always the minimum value). |
ReachedMax | Invoked when clamping is active and the counter reached the maximum value. |
parameter (float) The current value of the counter (always the maximum value). |
ChangedFromMin | Invoked when clamping is active and the counter changed from the minimum value. |
parameter (float) The current value of the counter. |
ChangedFromMax | Invoked when clamping is active and the counter changed from the maximum value. |
parameter (float) The current value of the counter. |
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 |