Class TextureAtlas
  
  
  
  
  
  
  Assembly: UnityEditor.dll
  Syntax
  
    public class TextureAtlas
   
  Fields
  
  
    |
    Improve this Doc
  
  
    View Source
  
  atlasHeight
  
  
  Declaration
  
  Field Value
  
  
    |
    Improve this Doc
  
  
    View Source
  
  atlasPadding
  
  
  Declaration
  
  Field Value
  
  
    |
    Improve this Doc
  
  
    View Source
  
  atlasWidth
  
  
  Declaration
  
  Field Value
  
  
    |
    Improve this Doc
  
  
    View Source
  
  nodes
  
  
  Declaration
  
    public List<TextureAtlas.TextureNode> nodes
   
  Field Value
  
  Methods
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  AddTexture(String, Texture2D, Color, Texture2D, Texture2D, Texture2D, Texture2D, Single, Vector2, Boolean, Vector2)
  
  
  Declaration
  
    public void AddTexture(string name, Texture2D diffuse, Color diffuseColor, Texture2D normal, Texture2D gloss, Texture2D transtex, Texture2D shadowOffsetTex, float shininess, Vector2 scale, bool tileV, Vector2 uvTiling)
   
  Parameters
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  GetHashCode()
  
  
  Declaration
  
    public override int GetHashCode()
   
  Returns
  
  Overrides
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  GetTexTiling(String)
  
  
  Declaration
  
    public Vector2 GetTexTiling(string name)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | String | name |  | 
    
  
  Returns
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  GetUVRect(String)
  
  
  Declaration
  
    public Rect GetUVRect(string name)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | String | name |  | 
    
  
  Returns
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Pack(ref Int32, Int32, Int32, Boolean)
  
  
  Declaration
  
    public void Pack(ref int targetWidth, int targetHeight, int padding, bool correctPow2)
   
  Parameters
  
  Extension Methods