class-description NEWS COMMUNITY STORE TUTORIALS SIGN UP LOGIN LOGOUT ROKOJORI NEWSLETTER SIGN UP LOGIN LOGOUT NEWS COMMUNITY STORE TUTORIALS TOGGLE FULLSCREEN VOLLBILD AN/AUS ObjectNode EditorFileSystem
Resource filesystem, as the editor sees it.

This object holds information of all resources in the filesystem, their types, etc.

filesystem_changed filesystem_changed<>():filesystem_changed

Emitted if the filesystem changed.

resources_reimported resources_reimported<>( PackedStringArray resources=, resources:PackedStringArray=, ):resources_reimported

Emitted if a resource is reimported.

resources_reload resources_reload<>( PackedStringArray resources=, resources:PackedStringArray=, ):resources_reload

Emitted if at least one resource is reloaded when the filesystem is scanned.

script_classes_updated script_classes_updated<>():script_classes_updated

Emitted when the list of global script classes gets updated.

sources_changed sources_changed<>( bool exist=, exist:bool=, ):sources_changed

Emitted if the source of any imported file changed.

String get_file_type<>( String path=, path:String=, ):String

Returns the resource type of the file, given the full path. This returns a string such as "Resource" or "GDScript", not a file extension such as ".gd".

EditorFileSystemDirectory get_filesystem<>():EditorFileSystemDirectory

Gets the root directory object.

EditorFileSystemDirectory get_filesystem_path<>( String path=, path:String=, ):EditorFileSystemDirectory

Returns a view into the filesystem at path.

float get_scanning_progress<>():float

Returns the scan progress for 0 to 1 if the FS is being scanned.

bool is_scanning<>():bool

Returns true if the filesystem is being scanned.

void reimport_files<>( PackedStringArray files=, files:PackedStringArray=, ):void

Reimports a set of files. Call this if these files or their .import files were directly edited by script or an external program.

If the file type changed or the file was newly created, use update_file or scan.

Note: This function blocks until the import is finished. However, the main loop iteration, including timers and Node._process, will occur during the import process due to progress bar updates. Avoid calls to reimport_files or scan while an import is in progress.

void scan<>():void

Scan the filesystem for changes.

void scan_sources<>():void

Check if the source of any imported resource changed.

void update_file<>( String path=, path:String=, ):void

Add a file in an existing directory, or schedule file information to be updated on editor restart. Can be used to update text files saved by an external program.

This will not import the file. To reimport, call reimport_files or scan methods.




All social media brands are registrated trademarks and belong to their respective owners.





CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
We are using cookies on this site. Read more... Wir benutzen Cookies auf dieser Seite. Mehr lesen...