Clamp
Last updated
Last updated
Clamp limits a numerical value to a given range, so that it isn't lower than the lower boundary, or higher than the upper boundary.
|
|
|
|
50 | 0 | 100 | 50 |
120 | 0 | 100 | 100 |
-20 | 0 | 100 | 0 |
-270 | -180 | 180 | -180 |
(-20, 1100) | (0, 0) | (1920, 1080) | (0, 1080) |
Scope: Project, Scene, Function, Prefab.
Attribute | Type | Description |
---|---|---|
| Drop-down | The type of data that will be plugged into the |
| Defined in the | The default lower boundary of the range, if there is nothing attached to the |
| Defined in the | The default upper boundary of the range, if there is nothing attached to the |
Input | Type | Description |
---|---|---|
Pulse Input (►) | Pulse | A standard input Pulse, to trigger the execution of the Node. |
| Defined in the | The value to be clamped within the range defined in |
| Defined in the | The lower boundary of the range. |
| Defined in the | The upper boundary of the range. |
Output | Type | Description |
---|---|---|
Pulse Output (►) | Pulse | A standard output Pulse, to move onto the next Node along the Logic Branch, once this Node has finished its execution. |
| Defined in the | The received |