Skip to content

Prefab Instance ​

js
const instance = ctx.instantiatePrefab('PipePair', x, y)
instance.setPosition(x, y)
instance.destroy()
instance.find('TopPipe')

Use the returned handle to control spawned prefab instances. Do not move repeated instances by hard-coded names.