extractSubgraph
此内容尚不支持你的语言。
extractSubgraph(
g,ids,ref,name?):ExtractedSubgraph
Defined in: render/materialGraph.ts:806
Turn the nodes
Parameters
Section titled “Parameters”readonly string[]
string
string = 'Subgraph'
Returns
Section titled “Returns”ExtractedSubgraph
ids into a subgraph, and put one node using it in their place.
Every wire from outside into the selection becomes an input (one per source node, named after the
slot it fed), and the one selected node that something outside reads becomes the result. Throws if
there is not exactly one such node — a subgraph has one result — or if the selection holds the
output. A node’s own param names carry over unchanged; the subgraph node prefixes them, so a
material that set u_tint now finds it as <node>_u_tint.