# width

> Width of the Texture in pixels.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine](/engine/6000.7/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public virtual int width { get; set; }
```

### Remarks

This value is the width of the Texture at the highest resolution that [\_mipStripping](/engine/6000.7/script-reference/unityeditor/playersettings/mipstripping.md) allows.

In the Unity Editor, this returns the width of the Texture at full resolution.

At run time, if [\_mipStripping](/engine/6000.7/script-reference/unityeditor/playersettings/mipstripping.md) is disabled, this returns the width of the Texture at full resolution. If [\_mipStripping](/engine/6000.7/script-reference/unityeditor/playersettings/mipstripping.md) is enabled, this returns the width of the Texture at the highest resolution that has not been stripped.

Additional Resources: [QualitySettings.globalTextureMipmapLimit](/engine/6000.7/script-reference/unityengine/qualitysettings/globaltexturemipmaplimit.md), [\_mipStripping](/engine/6000.7/script-reference/unityeditor/playersettings/mipstripping.md).

### Examples

```csharp
using UnityEngine;

public class Example : MonoBehaviour
{
    // Print Texture size to the Console
    Texture Texture;
    void Start()
    {
        print("Size is " + Texture.width + " by " + Texture.height);
    }
}
```
