Files
godot-docs/classes/class_packedscene.rst
Rémi Verschelde 1b5e8c18fd classref: Order everything alphabetically
And sync with current 2.0.x sources.
2016-06-25 02:10:54 +02:00

58 lines
2.4 KiB
ReStructuredText

.. 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<class_resource>` **<** :ref:`Reference<class_reference>` **<** :ref:`Object<class_object>`
**Category:** Core
Brief Description
-----------------
Member Functions
----------------
+--------------------------------------+--------------------------------------------------------------------------------------------------------------+
| :ref:`bool<class_bool>` | :ref:`can_instance<class_PackedScene_can_instance>` **(** **)** const |
+--------------------------------------+--------------------------------------------------------------------------------------------------------------+
| :ref:`SceneState<class_scenestate>` | :ref:`get_state<class_PackedScene_get_state>` **(** **)** |
+--------------------------------------+--------------------------------------------------------------------------------------------------------------+
| :ref:`Node<class_node>` | :ref:`instance<class_PackedScene_instance>` **(** :ref:`bool<class_bool>` gen_edit_state=false **)** const |
+--------------------------------------+--------------------------------------------------------------------------------------------------------------+
| :ref:`int<class_int>` | :ref:`pack<class_PackedScene_pack>` **(** :ref:`Node<class_node>` path **)** |
+--------------------------------------+--------------------------------------------------------------------------------------------------------------+
Description
-----------
TODO: explain ownership, and that node does not need to own itself
Member Function Description
---------------------------
.. _class_PackedScene_can_instance:
- :ref:`bool<class_bool>` **can_instance** **(** **)** const
.. _class_PackedScene_get_state:
- :ref:`SceneState<class_scenestate>` **get_state** **(** **)**
.. _class_PackedScene_instance:
- :ref:`Node<class_node>` **instance** **(** :ref:`bool<class_bool>` gen_edit_state=false **)** const
.. _class_PackedScene_pack:
- :ref:`int<class_int>` **pack** **(** :ref:`Node<class_node>` path **)**
Pack will ignore any sub-nodes not owned by given node. See :ref:`Node.set_owner<class_Node_set_owner>`.