0 votes

what is difference between PackedScene.instance() and Node.duplicate()

in Engine by (31 points)

1 Answer

+1 vote

A PackedScene is a resource object, which may contain the data representing a hierarchy of nodes, resources, and other data. Calling instance() on the PackedScene recreates that node hierarchy and its associated objects.

duplicate() is a Node method that returns a duplicate of the given node.

by (21,714 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.