C# Class TreeEditor.TextureAtlas

Show file Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Public Properties

Property Type Description
atlasHeight int
atlasPadding int
atlasWidth int
nodes List

Public Methods

Method Description
AddTexture ( string name, Texture2D diffuse, Color diffuseColor, Texture2D normal, Texture2D gloss, Texture2D transtex, Texture2D shadowOffsetTex, float shininess, Vector2 scale, bool tileV, Vector2 uvTiling ) : void
GetHashCode ( ) : int
GetTexTiling ( string name ) : Vector2
GetUVRect ( string name ) : Rect
Pack ( int &targetWidth, int targetHeight, int padding, bool correctPow2 ) : void

Method Details

AddTexture() public method

public AddTexture ( string name, Texture2D diffuse, Color diffuseColor, Texture2D normal, Texture2D gloss, Texture2D transtex, Texture2D shadowOffsetTex, float shininess, Vector2 scale, bool tileV, Vector2 uvTiling ) : void
name string
diffuse UnityEngine.Texture2D
diffuseColor Color
normal UnityEngine.Texture2D
gloss UnityEngine.Texture2D
transtex UnityEngine.Texture2D
shadowOffsetTex UnityEngine.Texture2D
shininess float
scale Vector2
tileV bool
uvTiling Vector2
return void

GetHashCode() public method

public GetHashCode ( ) : int
return int

GetTexTiling() public method

public GetTexTiling ( string name ) : Vector2
name string
return Vector2

GetUVRect() public method

public GetUVRect ( string name ) : Rect
name string
return UnityEngine.Rect

Pack() public method

public Pack ( int &targetWidth, int targetHeight, int padding, bool correctPow2 ) : void
targetWidth int
targetHeight int
padding int
correctPow2 bool
return void

Property Details

atlasHeight public property

public int atlasHeight
return int

atlasPadding public property

public int atlasPadding
return int

atlasWidth public property

public int atlasWidth
return int

nodes public property

public List nodes
return List