.. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead. .. _class_PackedScene: PackedScene =========== **Inherits:** :ref:`Resource` **<** :ref:`Reference` **<** :ref:`Object` **Category:** Core Brief Description ----------------- Member Functions ---------------- +--------------------------------------+----------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`can_instance` **(** **)** const | +--------------------------------------+----------------------------------------------------------------------------------------------------+ | :ref:`SceneState` | :ref:`get_state` **(** **)** | +--------------------------------------+----------------------------------------------------------------------------------------------------+ | :ref:`Node` | :ref:`instance` **(** :ref:`int` edit_state=0 **)** const | +--------------------------------------+----------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`pack` **(** :ref:`Node` path **)** | +--------------------------------------+----------------------------------------------------------------------------------------------------+ Member Variables ---------------- - :ref:`Dictionary` **_bundled** Numeric Constants ----------------- - **GEN_EDIT_STATE_DISABLED** = **0** - **GEN_EDIT_STATE_INSTANCE** = **1** - **GEN_EDIT_STATE_MAIN** = **2** Description ----------- TODO: explain ownership, and that node does not need to own itself Member Function Description --------------------------- .. _class_PackedScene_can_instance: - :ref:`bool` **can_instance** **(** **)** const .. _class_PackedScene_get_state: - :ref:`SceneState` **get_state** **(** **)** .. _class_PackedScene_instance: - :ref:`Node` **instance** **(** :ref:`int` edit_state=0 **)** const .. _class_PackedScene_pack: - :ref:`int` **pack** **(** :ref:`Node` path **)** Pack will ignore any sub-nodes not owned by given node. See :ref:`Node.set_owner`.