Skip to content
This repository was archived by the owner on Sep 21, 2022. It is now read-only.

ModIO.ModManager.GetModYouTubeThumbnail

Jackson Wood edited this page Mar 25, 2019 · 2 revisions

ModManager.GetModYouTubeThumbnail

public static void GetModYouTubeThumbnail(int modId, string youTubeVideoId, Action<Texture2D> onSuccess, Action<WebRequestError> onError);

Parameters

Name Description
modId Mod identifier for the gallery image
youTubeVideoId Identifier for the YouTube Video
onSuccess Action to execute if the request succeeds
onError Action to execute if the request returns an error

Description

Fetches and caches a Mod YouTube Thumbnail (if not already cached).

As with all similar ModManager functions, this checks the cache for the mod gallery image first, and if not found, fetches it from the server and stores it in the cache. As such, there is the potential for the data returned by this function to be obsolete.

See also: ModIO.DownloadClient.DownloadModGalleryImage, ModIO.CacheClient.LoadModGalleryImage

Clone this wiki locally