Class TextureCache
Static class for convenient resources (texture primarily) handling in the Unity Editor.
Inheritance
System.Object
    TextureCache
  Inherited Members
      System.Object.ToString()
    
    
      System.Object.Equals(System.Object)
    
    
      System.Object.Equals(System.Object, System.Object)
    
    
      System.Object.ReferenceEquals(System.Object, System.Object)
    
    
      System.Object.GetHashCode()
    
    
      System.Object.GetType()
    
    
      System.Object.MemberwiseClone()
    
  Namespace: PiXYZ.Editor
Assembly: cs.temp.dll.dll
Syntax
public static class TextureCache
  Methods
GetTexture(String, Color, Boolean)
Returns a texture from it's resource name. Particularity is that the texture can be tinted and downscaled. All textures returned by this function are cached for optimal performances.
Declaration
public static Texture2D GetTexture(string name, Color tint, bool lowres = false)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | name | |
| Color | tint | |
| System.Boolean | lowres | 
Returns
| Type | Description | 
|---|---|
| Texture2D | 
GetTexture(String, Boolean)
Returns a texture from it's resource name. Particularity is that the texture can be downscaled.
Declaration
public static Texture2D GetTexture(string name, bool lowres = false)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | name | |
| System.Boolean | lowres | 
Returns
| Type | Description | 
|---|---|
| Texture2D |