How ivanmurzak/unity-imageloader works
Unity Image Loader is a Unity runtime package for asynchronously loading sprites and textures from web or local paths, caching results, and delivering them to Unity objects. The documented workflow is to initialize the loader on Unity’s main thread, request an image, then await or consume the returned future; callers can also handle errors, cancellation, and lifecycle events. The README documents memory-before-disk caching and the supported delivery patterns. No source excerpts were provided, so edges below reflect README-documented relationships only; implementation details beyond those statements are not inferred.
Main entry points: IFuture.cs IFuture result · ImageLoader.cs ImageLoader API · ImageLoader.LoadSprite.cs Sprite loading · ImageLoader.LoadTexture.cs Texture loading
Components 15
Image loading
- ImageLoader API
Unity-Package/Assets/root/Runtime/ImageLoader.cs - Sprite loading
Unity-Package/Assets/root/Runtime/ImageLoader.LoadSprite.cs - Texture loading
Unity-Package/Assets/root/Runtime/ImageLoader.LoadTexture.cs - Web or local source
- Loader settings
Unity-Package/Assets/root/Runtime/ImageLoader.Settings.cs
Caching
- Memory cache
Unity-Package/Assets/root/Runtime/ImageLoader.Cache.Memory.cs - Disk cache
Unity-Package/Assets/root/Runtime/ImageLoader.Cache.Disk.cs
Future lifecycle
- IFuture result
Unity-Package/Assets/root/Runtime/Future/IFuture.cs - Future loading
Unity-Package/Assets/root/Runtime/Future/Future.Loading.cs - Web request
Unity-Package/Assets/root/Runtime/Future/Future.WebRequest.cs - Cancellation
Unity-Package/Assets/root/Runtime/Future/Extensions/FutureEx.CancelOn.cs
Unity integration
- Consume callbacks
Unity-Package/Assets/root/Runtime/Future/Extensions/FutureEx.Consume.cs - Texture references
Unity-Package/Assets/root/Runtime/Reference/Reference.cs - Unity image targets
Other components
- Unity application
Connections 15
- Unity application → ImageLoader API: initializes
README.md - Unity application → Sprite loading: requests sprite
README.md - Unity application → Texture loading: requests texture
README.md - Sprite loading → IFuture result: returns future
README.md - Texture loading → IFuture result: returns future
README.md - ImageLoader API → Memory cache: checks first
README.md - ImageLoader API → Disk cache: checks next
README.md - ImageLoader API → Web or local source: loads on miss
README.md - IFuture result → Future loading: exposes lifecycle
README.md - Future loading → Web request: loads web data
README.md - IFuture result → Consume callbacks: supports consume
README.md - Consume callbacks → Unity image targets: sets image
README.md - IFuture result → Cancellation: supports cancellation
README.md - Unity application → Texture references: manages references
README.md - Unity application → Loader settings: configures logging
README.md