C# Class TuxedoBerries.ScenePanel.Controllers.TextureDatabase

Texture database. Provide a databse of the scenes snapshots.
Afficher le fichier Open project: TuxedoBerries/ScenePanel Class Usage Examples

Méthodes publiques

Méthode Description
Clear ( ) : void

Clear this instance.

GetRelativeTexture ( string path ) : Texture

Gets the texture using the relative path fro this class file.

GetTexture ( string path ) : Texture

Gets the texture by path if any.

GetTexture ( string path, bool refresh ) : Texture

Gets the texture by path if any. If refresh is true, it will force to update the texture.

RefreshCache ( string path ) : bool

Refreshs the cache.

TextureDatabase ( ) : System.Collections.Generic
isCached ( string path ) : bool

Check if the given texture path is cached

Private Methods

Méthode Description
LocateRelativePath ( ) : void

Method Details

Clear() public méthode

Clear this instance.
public Clear ( ) : void
Résultat void

GetRelativeTexture() public méthode

Gets the texture using the relative path fro this class file.
public GetRelativeTexture ( string path ) : Texture
path string Path.
Résultat UnityEngine.Texture

GetTexture() public méthode

Gets the texture by path if any.
public GetTexture ( string path ) : Texture
path string Path.
Résultat UnityEngine.Texture

GetTexture() public méthode

Gets the texture by path if any. If refresh is true, it will force to update the texture.
public GetTexture ( string path, bool refresh ) : Texture
path string Path.
refresh bool If set to true refresh.
Résultat UnityEngine.Texture

RefreshCache() public méthode

Refreshs the cache.
public RefreshCache ( string path ) : bool
path string Path.
Résultat bool

TextureDatabase() public méthode

public TextureDatabase ( ) : System.Collections.Generic
Résultat System.Collections.Generic

isCached() public méthode

Check if the given texture path is cached
public isCached ( string path ) : bool
path string Path.
Résultat bool