Data Types & Color Coding
onCore designer uses color coding for data types. Cables have the same color as the Output Port they originate from. If a cable has a color gradient, type conversion happens, for example turquoise to pink means Integer to String.
Not all types can be converted to another type. Sometimes you need to use one or several Units to convert one type to another.
Port Appearance | Port Type | Description | Example |
|---|---|---|---|
Boolean | Binary variable. | false, true | |
Integer | 32-bit number without a fractional component. | 11, 23, -7 | |
Long | 64-bit number without a fractional component. | 11, 23, -7 | |
Index | Positive number without a fractional component. Used for drop-down boxes. | 1, 2, 55, 93 | |
Timecode | Timecode in HH:MM:SS:FF format. | 11:45:12:23 | |
Any | Any type. | – | |
Structure | Key-Value pairs. | – | |
Bytes | 8-bit Values. | 111, 110, 67, 111, 114, 101 | |
Double | Number with a fractional component. | 124.22, -45.95, 256 | |
String | One or multiple characters. | Hello World, 23, $48 | |
Array | Array of data. | – | |
Color | Color in RGBA format. | #FF33ADFF | |
Image | Image. | – |
String Ports can be connected to Byte Ports.
Other Port Types
Port Appearance | Port Type | Description |
|---|---|---|
Execute Trigger | This trigger gets fired by the execution flow and the Unit will be called to execute. | |
Success Trigger | Upon completion, this trigger will be automatically fired and the next Unit, which has its Execute Trigger wired to this Complete Trigger, will be executed next. | |
Fail Trigger | If something goes wrong while a Unit is being executed, the Fail Trigger will be fired instead of the Success Trigger. | |
Password | String Port with obscured password. Can only be connected to Password Ports. There are Units to convert a Password Port to a String Port (and vice versa). |
It is not possible to wire a Trigger to multiple other Triggers. If this is required please use the appropriate Units, such as Multi Trigger, Branch and Trigger Join.