You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Toggles the right (output) side of the slot with the given [param slot_index]. If [param enable] is [code]true[/code], a port will appear on the right side and the slot will be able to be connected from this side.
250
264
</description>
251
265
</method>
266
+
<methodname="set_slot_metadata_left">
267
+
<returntype="void" />
268
+
<paramindex="0"name="slot_index"type="int" />
269
+
<paramindex="1"name="value"type="Variant" />
270
+
<description>
271
+
Sets the custom metadata for the left (input) side of the slot with the given [param slot_index] to [param value].
272
+
</description>
273
+
</method>
274
+
<methodname="set_slot_metadata_right">
275
+
<returntype="void" />
276
+
<paramindex="0"name="slot_index"type="int" />
277
+
<paramindex="1"name="value"type="Variant" />
278
+
<description>
279
+
Sets the custom metadata for the right (output) side of the slot with the given [param slot_index] to [param value].
ERR_FAIL_COND_MSG(!slot_table.has(p_slot_index), vformat("Cannot set left metadata for the slot with index '%d' because it hasn't been enabled.", p_slot_index));
ERR_FAIL_COND_MSG(!slot_table.has(p_slot_index), vformat("Cannot set right metadata for the slot with index '%d' because it hasn't been enabled.", p_slot_index));
0 commit comments