connect
connect(
g,fromId,toId,toSlot):MaterialGraph
Defined in: materialGraph.ts:456
Connect
Parameters
Section titled “Parameters”fromId
Section titled “fromId”string
string
toSlot
Section titled “toSlot”string
Returns
Section titled “Returns”fromId’s output into
toId’s
toSlot input. Rejected (returns the graph unchanged) if it would create a cycle or the slot is unknown — so the canvas can’t author an uncompilable graph.