module
Godot::PreloadCache
Overview
In-memory thread-safe cache for preloaded resources
Defined in:
libgodot/extensions/resource.crClass Method Summary
-
.[]=(path : String, resource : Resource) : Void
Directly inserts or overrides a resource in the preloaded cache
- .clear : Void
-
.delete(path : String) : Resource | Nil
Removes a cached resource from memory, returning it if present
- .get_or_load(path : String, type : T.class) : T forall T
- .get_or_load?(path : String, type : T.class) : T | Nil forall T
- .has?(path : String) : Bool
-
.set(path : String, resource : Resource) : Void
Directly inserts or overrides a resource in the preloaded cache
-
.size : Int32
Returns the count of resources currently cached in memory
Class Method Detail
Directly inserts or overrides a resource in the preloaded cache
Removes a cached resource from memory, returning it if present
Directly inserts or overrides a resource in the preloaded cache