class_packedscenegltf.rst 5.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/make_rst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the PackedSceneGLTF.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_PackedSceneGLTF:
  6. PackedSceneGLTF
  7. ===============
  8. **Inherits:** :ref:`PackedScene<class_PackedScene>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  9. Description
  10. -----------
  11. **Note:** This class is only compiled in editor builds. Run-time glTF loading and saving is *not* available in exported projects. References to ``PackedSceneGLTF`` within a script will cause an error in an exported project.
  12. Properties
  13. ----------
  14. +-------------------------------------+----------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  15. | :ref:`Dictionary<class_Dictionary>` | _bundled | ``{"conn_count": 0,"conns": PoolIntArray( ),"editable_instances": [ ],"names": PoolStringArray( ),"node_count": 0,"node_paths": [ ],"nodes": PoolIntArray( ),"variants": [ ],"version": 2}`` *(parent override)* |
  16. +-------------------------------------+----------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  17. Methods
  18. -------
  19. +---------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  20. | :ref:`Error<enum_@GlobalScope_Error>` | :ref:`export_gltf<class_PackedSceneGLTF_method_export_gltf>` **(** :ref:`Node<class_Node>` node, :ref:`String<class_String>` path, :ref:`int<class_int>` flags=0, :ref:`float<class_float>` bake_fps=1000.0 **)** |
  21. +---------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  22. | :ref:`Node<class_Node>` | :ref:`import_gltf_scene<class_PackedSceneGLTF_method_import_gltf_scene>` **(** :ref:`String<class_String>` path, :ref:`int<class_int>` flags=0, :ref:`float<class_float>` bake_fps=1000.0, :ref:`int<class_int>` compress_flags=2194432, :ref:`GLTFState<class_GLTFState>` state=null **)** |
  23. +---------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  24. | void | :ref:`pack_gltf<class_PackedSceneGLTF_method_pack_gltf>` **(** :ref:`String<class_String>` path, :ref:`int<class_int>` flags=0, :ref:`float<class_float>` bake_fps=1000.0, :ref:`int<class_int>` compress_flags=2194432, :ref:`GLTFState<class_GLTFState>` state=null **)** |
  25. +---------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  26. Method Descriptions
  27. -------------------
  28. .. _class_PackedSceneGLTF_method_export_gltf:
  29. - :ref:`Error<enum_@GlobalScope_Error>` **export_gltf** **(** :ref:`Node<class_Node>` node, :ref:`String<class_String>` path, :ref:`int<class_int>` flags=0, :ref:`float<class_float>` bake_fps=1000.0 **)**
  30. ----
  31. .. _class_PackedSceneGLTF_method_import_gltf_scene:
  32. - :ref:`Node<class_Node>` **import_gltf_scene** **(** :ref:`String<class_String>` path, :ref:`int<class_int>` flags=0, :ref:`float<class_float>` bake_fps=1000.0, :ref:`int<class_int>` compress_flags=2194432, :ref:`GLTFState<class_GLTFState>` state=null **)**
  33. ----
  34. .. _class_PackedSceneGLTF_method_pack_gltf:
  35. - void **pack_gltf** **(** :ref:`String<class_String>` path, :ref:`int<class_int>` flags=0, :ref:`float<class_float>` bake_fps=1000.0, :ref:`int<class_int>` compress_flags=2194432, :ref:`GLTFState<class_GLTFState>` state=null **)**
  36. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  37. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  38. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`