Default to black frame if no path supplied for slide

This commit is contained in:
Nick 2022-09-13 19:12:43 -04:00
parent d3e44d0e69
commit 13b714ac88

View File

@ -403,6 +403,12 @@ namespace NewHorizons.Utility
IEnumerator DownloadTexture(string url, int index)
{
if (string.IsNullOrEmpty(url))
{
imageLoadedEvent?.Invoke(Texture2D.blackTexture, index);
yield break;
}
lock(_loadedTextures)
{
if (_loadedTextures.ContainsKey(url))