18 lines
477 B
GDScript3
18 lines
477 B
GDScript3
|
extends Object
|
||
|
class_name ResourceUtils
|
||
|
|
||
|
# # remove editor's cache
|
||
|
# func remove_editor_cache(resource: Resource) -> void:
|
||
|
# if Engine.is_editor_hint():
|
||
|
# (resource)
|
||
|
|
||
|
|
||
|
static func remove_editor_cache(name: String) -> void:
|
||
|
pass
|
||
|
# var dir = DirAccess.open("res://.godot/editor")
|
||
|
# for file in dir.get_files():
|
||
|
# if file.get_basename().begins_with(name):
|
||
|
# DirAccess.remove_absolute("res://.godot/editor/" + file)
|
||
|
# print("Removed editor cache: ", file)
|
||
|
# break
|