# Texture

> Base class for Texture handling.

## Definition

* **Type:** Class
* **Namespace:** [UnityEngine](/engine/6000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule
* **Inherits from:** [Object](/engine/6000.0/script-reference/unityengine/object.md)

```csharp
public class Texture : Object
```

## Static Fields

| Value                                                                                     | Description                                                                                                                                |
| ----------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
| [GenerateAllMips](/engine/6000.0/script-reference/unityengine/texture/generateallmips.md) | Can be used with Texture constructors that take a mip count to indicate that all mips should be generated.  The value of this field is -1. |

## Properties

| Property                                                                                      | Description                                                                                                                                                                   |
| --------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [anisoLevel](/engine/6000.0/script-reference/unityengine/texture/anisolevel.md)               | Defines the anisotropic filtering level of the Texture.                                                                                                                       |
| [dimension](/engine/6000.0/script-reference/unityengine/texture/dimension.md)                 | Dimensionality (type) of the Texture (Read Only).                                                                                                                             |
| [filterMode](/engine/6000.0/script-reference/unityengine/texture/filtermode.md)               | Filtering mode of the Texture.                                                                                                                                                |
| [graphicsFormat](/engine/6000.0/script-reference/unityengine/texture/graphicsformat.md)       | Returns the [GraphicsFormat](/engine/6000.0/script-reference/unityengine/experimental/rendering/graphicsformat.md) format or color format of a Texture object.                |
| [graphicsTexture](/engine/6000.0/script-reference/unityengine/texture/graphicstexture.md)     | [GraphicsTexture](/engine/6000.0/script-reference/unityengine/rendering/graphicstexture.md) that represents the texture resource uploaded to the graphics device (Read Only). |
| [height](/engine/6000.0/script-reference/unityengine/texture/height.md)                       | Height of the Texture in pixels (Read Only).                                                                                                                                  |
| [imageContentsHash](/engine/6000.0/script-reference/unityengine/texture/imagecontentshash.md) | The hash value of the Texture.                                                                                                                                                |
| [isDataSRGB](/engine/6000.0/script-reference/unityengine/texture/isdatasrgb.md)               | Returns `true` if the texture pixel data is in sRGB color space (Read Only).                                                                                                  |
| [isReadable](/engine/6000.0/script-reference/unityengine/texture/isreadable.md)               | Whether Unity stores an additional copy of this texture's pixel data in CPU-addressable memory.                                                                               |
| [mipMapBias](/engine/6000.0/script-reference/unityengine/texture/mipmapbias.md)               | The mipmap bias of the Texture.                                                                                                                                               |
| [mipmapCount](/engine/6000.0/script-reference/unityengine/texture/mipmapcount.md)             | How many mipmap levels are in this Texture (Read Only).                                                                                                                       |
| [updateCount](/engine/6000.0/script-reference/unityengine/texture/updatecount.md)             | This counter is incremented when the Texture is updated.                                                                                                                      |
| [width](/engine/6000.0/script-reference/unityengine/texture/width.md)                         | Width of the Texture in pixels (Read Only).                                                                                                                                   |
| [wrapMode](/engine/6000.0/script-reference/unityengine/texture/wrapmode.md)                   | Texture coordinate wrapping mode.                                                                                                                                             |
| [wrapModeU](/engine/6000.0/script-reference/unityengine/texture/wrapmodeu.md)                 | Texture U coordinate wrapping mode.                                                                                                                                           |
| [wrapModeV](/engine/6000.0/script-reference/unityengine/texture/wrapmodev.md)                 | Texture V coordinate wrapping mode.                                                                                                                                           |
| [wrapModeW](/engine/6000.0/script-reference/unityengine/texture/wrapmodew.md)                 | Texture W coordinate wrapping mode for [Texture3D](/engine/6000.0/script-reference/unityengine/texture3d.md).                                                                 |

## Static Properties

| Property                                                                                                                      | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [allowThreadedTextureCreation](/engine/6000.0/script-reference/unityengine/texture/allowthreadedtexturecreation.md)           | Allow Unity internals to perform Texture creation on any thread (rather than the dedicated render thread).                                                                                                                                                                                                                                                                                                                                                                                                                                |
| [currentTextureMemory](/engine/6000.0/script-reference/unityengine/texture/currenttexturememory.md)                           | The amount of memory that all Textures in the scene use.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| [desiredTextureMemory](/engine/6000.0/script-reference/unityengine/texture/desiredtexturememory.md)                           | The total size of the Textures, in bytes, that Unity loads if there were no other constraints. Before Unity loads any Textures, it applies the [memory budget](/engine/6000.0/manual/materials-and-shaders/textures/texture-loading/texture-streaming.md#memory-budget) which reduces the loaded Texture resolution if the Texture sizes exceed its value. The desiredTextureMemory value takes into account the mipmap levels that Unity has requested or that you have set manually.                                                    |
| [nonStreamingTextureCount](/engine/6000.0/script-reference/unityengine/texture/nonstreamingtexturecount.md)                   | The number of non-streaming Textures in the scene. This includes instances of Texture2D and CubeMap Textures. This does not include any other Texture types, or 2D and CubeMap Textures that Unity creates internally.                                                                                                                                                                                                                                                                                                                    |
| [nonStreamingTextureMemory](/engine/6000.0/script-reference/unityengine/texture/nonstreamingtexturememory.md)                 | The amount of memory Unity allocates for non-streaming Textures in the scene. This only includes instances of Texture2D and CubeMap Textures. This does not include any other Texture types, or 2D and CubeMap Textures that Unity creates internally.                                                                                                                                                                                                                                                                                    |
| [streamingMipmapUploadCount](/engine/6000.0/script-reference/unityengine/texture/streamingmipmapuploadcount.md)               | How many times has a Texture been uploaded due to Texture mipmap streaming.                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| [streamingRendererCount](/engine/6000.0/script-reference/unityengine/texture/streamingrenderercount.md)                       | Number of renderers registered with the Texture streaming system.                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| [streamingTextureCount](/engine/6000.0/script-reference/unityengine/texture/streamingtexturecount.md)                         | Number of streaming Textures.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| [streamingTextureDiscardUnusedMips](/engine/6000.0/script-reference/unityengine/texture/streamingtexturediscardunusedmips.md) | This property forces the streaming Texture system to discard all unused mipmaps instead of caching them until the Texture [memory budget](/engine/6000.0/manual/materials-and-shaders/textures/texture-loading/texture-streaming.md#memory-budget) is exceeded. This is useful when you profile or write tests to keep a predictable set of Textures in memory.                                                                                                                                                                           |
| [streamingTextureForceLoadAll](/engine/6000.0/script-reference/unityengine/texture/streamingtextureforceloadall.md)           | Force streaming Textures to load all mipmap levels.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| [streamingTextureLoadingCount](/engine/6000.0/script-reference/unityengine/texture/streamingtextureloadingcount.md)           | Number of streaming Textures with mipmaps currently loading.                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| [streamingTexturePendingLoadCount](/engine/6000.0/script-reference/unityengine/texture/streamingtexturependingloadcount.md)   | Number of streaming Textures with outstanding mipmaps to be loaded.                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| [targetTextureMemory](/engine/6000.0/script-reference/unityengine/texture/targettexturememory.md)                             | The total amount of Texture memory that Unity allocates to the Textures in the scene after it applies the [memory budget](/engine/6000.0/manual/unity-editor/editor-settings-reference/comp-manager-group/class-quality-settings.md#textures) and finishes loading Textures. `targetTextureMemory`also takes mipmap streaming settings into account. This value only includes instances of Texture2D and CubeMap Textures. This value does not include any other Texture types, or 2D and CubeMap Textures that Unity creates internally. |
| [totalTextureMemory](/engine/6000.0/script-reference/unityengine/texture/totaltexturememory.md)                               | The total amount of Texture memory that Unity would use if it loads all Textures at mipmap level 0.                                                                                                                                                                                                                                                                                                                                                                                                                                       |

## Methods

| Method                                                                                              | Description                                                                  |
| --------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------- |
| [GetNativeTexturePtr](/engine/6000.0/script-reference/unityengine/texture/getnativetextureptr.md)   | Retrieve a native (underlying graphics API) pointer to the Texture resource. |
| [IncrementUpdateCount](/engine/6000.0/script-reference/unityengine/texture/incrementupdatecount.md) | Increment the update counter.                                                |

## Static Methods

| Method                                                                                                                                          | Description                                                                                                 |
| ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
| [SetGlobalAnisotropicFilteringLimits](/engine/6000.0/script-reference/unityengine/texture/setglobalanisotropicfilteringlimits.md)               | Sets Anisotropic limits.                                                                                    |
| [SetStreamingTextureMaterialDebugProperties](/engine/6000.0/script-reference/unityengine/texture/setstreamingtexturematerialdebugproperties.md) | This function sets mipmap streaming debug properties on all materials known by the mipmap streaming system. |

## Inheritance

**Inherited Members:**

* [Object.GetInstanceID()](/engine/6000.0/script-reference/unityengine/object/getinstanceid.md)
* [Object.GetHashCode()](/engine/6000.0/script-reference/unityengine/object/gethashcode.md)
* [Object.InstantiateAsync\<T>(T)](/engine/6000.0/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, Transform)](/engine/6000.0/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, Vector3, Quaternion)](/engine/6000.0/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, Transform, Vector3, Quaternion)](/engine/6000.0/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int)](/engine/6000.0/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Transform)](/engine/6000.0/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Vector3, Quaternion)](/engine/6000.0/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, ReadOnlySpan\<Vector3>, ReadOnlySpan\<Quaternion>)](/engine/6000.0/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Transform, Vector3, Quaternion)](/engine/6000.0/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Transform, Vector3, Quaternion, CancellationToken)](/engine/6000.0/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Transform, ReadOnlySpan\<Vector3>, ReadOnlySpan\<Quaternion>)](/engine/6000.0/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Transform, ReadOnlySpan\<Vector3>, ReadOnlySpan\<Quaternion>, CancellationToken)](/engine/6000.0/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, InstantiateParameters, CancellationToken)](/engine/6000.0/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, InstantiateParameters, CancellationToken)](/engine/6000.0/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, Vector3, Quaternion, InstantiateParameters, CancellationToken)](/engine/6000.0/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Vector3, Quaternion, InstantiateParameters, CancellationToken)](/engine/6000.0/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, ReadOnlySpan\<Vector3>, ReadOnlySpan\<Quaternion>, InstantiateParameters, CancellationToken)](/engine/6000.0/script-reference/unityengine/object/instantiateasync.md)
* [Object.Instantiate(Object, Vector3, Quaternion)](/engine/6000.0/script-reference/unityengine/object/instantiate.md#instantiate\(object-vector3-quaternion\))
* [Object.Instantiate(Object, Vector3, Quaternion, Transform)](/engine/6000.0/script-reference/unityengine/object/instantiate.md#instantiate\(object-vector3-quaternion-transform\))
* [Object.Instantiate(Object)](/engine/6000.0/script-reference/unityengine/object/instantiate.md#instantiate\(object\))
* [Object.Instantiate(Object, Scene)](/engine/6000.0/script-reference/unityengine/object/instantiate.md#instantiate\(object-scene\))
* [Object.Instantiate\<T>(T, InstantiateParameters)](/engine/6000.0/script-reference/unityengine/object/instantiate.md)
* [Object.Instantiate\<T>(T, Vector3, Quaternion, InstantiateParameters)](/engine/6000.0/script-reference/unityengine/object/instantiate.md)
* [Object.Instantiate(Object, Transform)](/engine/6000.0/script-reference/unityengine/object/instantiate.md#instantiate\(object-transform\))
* [Object.Instantiate(Object, Transform, bool)](/engine/6000.0/script-reference/unityengine/object/instantiate.md#instantiate\(object-transform-bool\))
* [Object.Instantiate\<T>(T)](/engine/6000.0/script-reference/unityengine/object/instantiate.md)
* [Object.Instantiate\<T>(T, Vector3, Quaternion)](/engine/6000.0/script-reference/unityengine/object/instantiate.md)
* [Object.Instantiate\<T>(T, Vector3, Quaternion, Transform)](/engine/6000.0/script-reference/unityengine/object/instantiate.md)
* [Object.Instantiate\<T>(T, Transform)](/engine/6000.0/script-reference/unityengine/object/instantiate.md)
* [Object.Instantiate\<T>(T, Transform, bool)](/engine/6000.0/script-reference/unityengine/object/instantiate.md)
* [Object.Destroy(Object, float)](/engine/6000.0/script-reference/unityengine/object/destroy.md)
* [Object.DestroyImmediate(Object, bool)](/engine/6000.0/script-reference/unityengine/object/destroyimmediate.md)
* [Object.FindObjectsByType(Type, FindObjectsSortMode)](/engine/6000.0/script-reference/unityengine/object/findobjectsbytype.md#findobjectsbytype\(type-findobjectssortmode\))
* [Object.FindObjectsByType(Type, FindObjectsInactive, FindObjectsSortMode)](/engine/6000.0/script-reference/unityengine/object/findobjectsbytype.md#findobjectsbytype\(type-findobjectsinactive-findobjectssortmode\))
* [Object.DontDestroyOnLoad(Object)](/engine/6000.0/script-reference/unityengine/object/dontdestroyonload.md)
* [Object.FindObjectsByType\<T>(FindObjectsSortMode)](/engine/6000.0/script-reference/unityengine/object/findobjectsbytype.md#findobjectsbytypet\(findobjectssortmode\))
* [Object.FindObjectsByType\<T>(FindObjectsInactive, FindObjectsSortMode)](/engine/6000.0/script-reference/unityengine/object/findobjectsbytype.md#findobjectsbytypet\(findobjectsinactive-findobjectssortmode\))
* [Object.FindFirstObjectByType\<T>()](/engine/6000.0/script-reference/unityengine/object/findfirstobjectbytype.md#findfirstobjectbytypet\(\))
* [Object.FindAnyObjectByType\<T>()](/engine/6000.0/script-reference/unityengine/object/findanyobjectbytype.md#findanyobjectbytypet\(\))
* [Object.FindFirstObjectByType\<T>(FindObjectsInactive)](/engine/6000.0/script-reference/unityengine/object/findfirstobjectbytype.md#findfirstobjectbytypet\(findobjectsinactive\))
* [Object.FindAnyObjectByType\<T>(FindObjectsInactive)](/engine/6000.0/script-reference/unityengine/object/findanyobjectbytype.md#findanyobjectbytypet\(findobjectsinactive\))
* [Object.FindFirstObjectByType(Type)](/engine/6000.0/script-reference/unityengine/object/findfirstobjectbytype.md#findfirstobjectbytype\(type\))
* [Object.FindAnyObjectByType(Type)](/engine/6000.0/script-reference/unityengine/object/findanyobjectbytype.md#findanyobjectbytype\(type\))
* [Object.FindFirstObjectByType(Type, FindObjectsInactive)](/engine/6000.0/script-reference/unityengine/object/findfirstobjectbytype.md#findfirstobjectbytype\(type-findobjectsinactive\))
* [Object.FindAnyObjectByType(Type, FindObjectsInactive)](/engine/6000.0/script-reference/unityengine/object/findanyobjectbytype.md#findanyobjectbytype\(type-findobjectsinactive\))
* [Object.ToString()](/engine/6000.0/script-reference/unityengine/object/tostring.md)
* [Object.name](/engine/6000.0/script-reference/unityengine/object/name.md)
* [Object.hideFlags](/engine/6000.0/script-reference/unityengine/object/hideflags.md)

### Operators

| Operator                                                                           | Description                                                             |
| ---------------------------------------------------------------------------------- | ----------------------------------------------------------------------- |
| [operator ==](/engine/6000.0/script-reference/unityengine/object/op-equality.md)   | Compares two object references to see if they refer to the same object. |
| [bool](/engine/6000.0/script-reference/unityengine/object/op-implicit.md)          | Determines whether the object exists.                                   |
| [operator !=](/engine/6000.0/script-reference/unityengine/object/op-inequality.md) | Compares if two objects refer to a different object.                    |
