.. 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_ResourceSaver: ResourceSaver ============= **Inherits:** :ref:`Object` **Category:** Core Brief Description ----------------- Resource Saving Interface. Member Functions ---------------- +------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`PoolStringArray` | :ref:`get_recognized_extensions` **(** :ref:`Resource` type **)** | +------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`save` **(** :ref:`String` path, :ref:`Resource` resource, :ref:`int` flags=null **)** | +------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------+ Numeric Constants ----------------- - **FLAG_RELATIVE_PATHS** = **1** - **FLAG_BUNDLE_RESOURCES** = **2** - **FLAG_CHANGE_PATH** = **4** - **FLAG_OMIT_EDITOR_PROPERTIES** = **8** - **FLAG_SAVE_BIG_ENDIAN** = **16** - **FLAG_COMPRESS** = **32** Description ----------- Resource Saving Interface. This interface is used for saving resources to disk. Member Function Description --------------------------- .. _class_ResourceSaver_get_recognized_extensions: - :ref:`PoolStringArray` **get_recognized_extensions** **(** :ref:`Resource` type **)** Return the list of extensions available for saving a resource of a given type. .. _class_ResourceSaver_save: - :ref:`int` **save** **(** :ref:`String` path, :ref:`Resource` resource, :ref:`int` flags=null **)** Save a resource to disk, to a given path.