C# Class TuxedoBerries.ScenePanel.Controllers.TextureDatabase

Texture database. Provide a databse of the scenes snapshots.
Mostrar archivo Open project: TuxedoBerries/ScenePanel Class Usage Examples

Public Methods

Method 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

Method Description
LocateRelativePath ( ) : void

Method Details

Clear() public method

Clear this instance.
public Clear ( ) : void
return void

GetRelativeTexture() public method

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

GetTexture() public method

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

GetTexture() public method

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.
return UnityEngine.Texture

RefreshCache() public method

Refreshs the cache.
public RefreshCache ( string path ) : bool
path string Path.
return bool

TextureDatabase() public method

public TextureDatabase ( ) : System.Collections.Generic
return System.Collections.Generic

isCached() public method

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