ImageLoader¶
Namespace: WellFired.Guacamole.Unity.Editor.NativeControls
Description¶
Public Methods¶
async Task< Texture2D > | LoadImage ( IImageSource imageSource, Func< bool > isImageStillAwaited ) |
Breakdown¶
async Task< Texture2D > LoadImage ( IImageSource imageSource, Func< bool > isImageStillAwaited )
Description
Load an image from an image source. Since loading is asynchronous, it’s very possible that once the image is loaded the calling entity does not require it anymore. In this case a null value is returned.
Parameters
imageSource The source from where the image is loaded isImageStillAwaited A delegate informing if the loaded image is still required or not by the calling entity