C# Класс TuxedoBerries.ScenePanel.Controllers.TextureDatabase

Texture database. Provide a databse of the scenes snapshots.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
LocateRelativePath ( ) : void

Описание методов

Clear() публичный Метод

Clear this instance.
public Clear ( ) : void
Результат void

GetRelativeTexture() публичный Метод

Gets the texture using the relative path fro this class file.
public GetRelativeTexture ( string path ) : Texture
path string Path.
Результат UnityEngine.Texture

GetTexture() публичный Метод

Gets the texture by path if any.
public GetTexture ( string path ) : Texture
path string Path.
Результат UnityEngine.Texture

GetTexture() публичный Метод

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.
Результат UnityEngine.Texture

RefreshCache() публичный Метод

Refreshs the cache.
public RefreshCache ( string path ) : bool
path string Path.
Результат bool

TextureDatabase() публичный Метод

public TextureDatabase ( ) : System.Collections.Generic
Результат System.Collections.Generic

isCached() публичный Метод

Check if the given texture path is cached
public isCached ( string path ) : bool
path string Path.
Результат bool