W3cubDocs

/Godot 3.0

ResourceSaver

Inherits: Object

Category: Core

Brief Description

Resource Saving Interface.

Member Functions

PoolStringArray get_recognized_extensions ( Resource type )
int save ( String path, Resource resource, int flags=0 )

Enums

enum SaverFlags

  • 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

PoolStringArray get_recognized_extensions ( Resource type )

Return the list of extensions available for saving a resource of a given type.

int save ( String path, Resource resource, int flags=0 )

Save a resource to disk, to a given path.

© 2014–2018 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
http://docs.godotengine.org/en/3.0/classes/class_resourcesaver.html