Dungeon Architect  17.0.0
DungeonArchitect.Editors.AssetThumbnailCache Class Reference

Manages the asset thumbnails to display in the visual nodes More...

Public Member Functions

void Reset ()
 Clears all the thumbnail from the cache More...
 
Texture2D GetThumb (Object asset)
 Gets the thumbnail of the specified asset. Tries to retrieve it from the cache, if it was accessed earlier More...
 
void Update ()
 

Properties

static AssetThumbnailCache Instance [get]
 Singleton access More...
 

Detailed Description

Manages the asset thumbnails to display in the visual nodes

Definition at line 12 of file AssetThumbnailCache.cs.

Member Function Documentation

◆ GetThumb()

Texture2D DungeonArchitect.Editors.AssetThumbnailCache.GetThumb ( Object  asset)

Gets the thumbnail of the specified asset. Tries to retrieve it from the cache, if it was accessed earlier

Parameters
assetThe asset to get the thumbnail for
Returns
The thumbnail of the asset. If thumbnail cannot be created, returns the defaultTexture instead

Definition at line 64 of file AssetThumbnailCache.cs.

◆ Reset()

void DungeonArchitect.Editors.AssetThumbnailCache.Reset ( )

Clears all the thumbnail from the cache

Definition at line 52 of file AssetThumbnailCache.cs.

Property Documentation

◆ Instance

AssetThumbnailCache DungeonArchitect.Editors.AssetThumbnailCache.Instance
staticget

Singleton access

Definition at line 31 of file AssetThumbnailCache.cs.


The documentation for this class was generated from the following file: