Skip to content

reparentBtNode

reparentBtNode(def, id, newParentId): BtDefinition

Defined in: ai/bt/btGraph.ts:204

Reparent a subtree under a new parent (canvas drag-to-connect) — moves it out of the orphan pool or from its current parent. No-ops on a cycle (new parent is a descendant), a full parent, or the run root itself.

BtDefinition

string

string

BtDefinition