Skip to content

connect

connect(g, fromId, toId, toSlot): MaterialGraph

Defined in: materialGraph.ts:456

Connect

MaterialGraph

string

string

string

MaterialGraph

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.