Texture.width Manual     Reference     Scripting  
Scripting > Runtime Classes > Texture
Texture.width

var width : int

Description

Width of the texture in pixels (Read Only)

// Print texture size to the Console
var texture : Texture;
function Start () {
print("Size is " + texture.width + " by " + texture.height);
}