Part of StarfallEx namespace
๐ External
wire.adjustPorts(inputs, outputs)๐ Has LDoc๐๏ธ 1 viewsUpdated 2 months ago
Description
Creates/Modifies wire inputs/outputs. All wire ports must begin with an uppercase letter and contain only alphabetical characters or numbers but may not begin with a number.
Parameters
| Name | Type | Description |
|---|---|---|
inputs? | table | (Optional) A key-value table with input port names as keys and types as values. e.g. {MyInput="number"} or {MyInput={type="number"}}. If nil, input ports won't be changed. If you use the latter syntax for defining ports, you can also specify description alongside the type, ex. {MyInput={type="number", description="Description for this input."}} |
outputs? | table | (Optional) A key-value table with output port names as keys and types as values. The above behavior for inputs also applies for outputs. |
Returns
No return values documented.
Examples
No examples available.
Used In
No usages found in the codebase.