add cache to Assets

This commit is contained in:
Abnormal
2025-06-10 08:57:14 -07:00
committed by Kade
parent 8ca4d933aa
commit 29b94ea736
+5
View File
@@ -9,6 +9,11 @@ import openfl.utils.Future;
@:nullSafety
class Assets
{
/**
* The assets cache.
*/
public static var cache:openfl.utils.IAssetCache = openfl.utils.Assets.cache;
/**
* Get the file system path for an asset
* @param path The asset path to load from, relative to the assets folder