# Cubemap

> Class for handling cube maps, Use this to create or modify existing cube map assets.

## Definition

* **Type:** Class
* **Namespace:** [UnityEngine](/engine/6000.6/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule
* **Inherits from:** [Texture](/engine/6000.6/script-reference/unityengine/texture.md)

```csharp
public sealed class Cubemap : Texture
```

## Remarks

This class does not support Cubemap creation with a Crunch compression [TextureFormat](/engine/6000.6/script-reference/unityengine/textureformat.md).

## Constructors

| Constructor                                                                                                                                                                         | Description                         |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------- |
| [Cubemap(System.Int32,UnityEngine.TextureFormat,System.Boolean)](/engine/6000.6/script-reference/unityengine/cubemap/ctor.md#cubemap\(int-textureformat-bool\))                     | Create a new empty cubemap texture. |
| [Cubemap(System.Int32,UnityEngine.TextureFormat,System.Boolean,System.Boolean)](/engine/6000.6/script-reference/unityengine/cubemap/ctor.md#cubemap\(int-textureformat-bool-bool\)) | Create a new empty cubemap texture. |
| [Cubemap(System.Int32,UnityEngine.TextureFormat,System.Int32)](/engine/6000.6/script-reference/unityengine/cubemap/ctor.md#cubemap\(int-textureformat-int\))                        | Create a new empty cubemap texture. |
| [Cubemap(System.Int32,UnityEngine.TextureFormat,System.Int32,System.Boolean)](/engine/6000.6/script-reference/unityengine/cubemap/ctor.md#cubemap\(int-textureformat-int-bool\))    | Create a new empty cubemap texture. |

## Properties

| Property                                                                                                    | Description                                                                                            |
| ----------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------ |
| [desiredMipmapLevel](/engine/6000.6/script-reference/unityengine/cubemap/desiredmipmaplevel.md)             | The mipmap level that the streaming system would load before memory budgets are applied.               |
| [format](/engine/6000.6/script-reference/unityengine/cubemap/format.md)                                     | The format of the pixel data in the texture (Read Only).                                               |
| [loadedMipmapLevel](/engine/6000.6/script-reference/unityengine/cubemap/loadedmipmaplevel.md)               | The mipmap level that is currently loaded by the streaming system.                                     |
| [loadingMipmapLevel](/engine/6000.6/script-reference/unityengine/cubemap/loadingmipmaplevel.md)             | The mipmap level that the mipmap streaming system is in the process of loading.                        |
| [requestedMipmapLevel](/engine/6000.6/script-reference/unityengine/cubemap/requestedmipmaplevel.md)         | The mipmap level to load.                                                                              |
| [streamingMipmaps](/engine/6000.6/script-reference/unityengine/cubemap/streamingmipmaps.md)                 | Determines whether mipmap streaming is enabled for this Texture.                                       |
| [streamingMipmapsPriority](/engine/6000.6/script-reference/unityengine/cubemap/streamingmipmapspriority.md) | Sets the relative priority for this Texture when reducing memory size to fit within the memory budget. |

## Methods

| Method                                                                                                              | Description                                                                                                                      |
| ------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
| [Apply](/engine/6000.6/script-reference/unityengine/cubemap/apply.md)                                               | Copies changes you've made in a CPU texture to the GPU.                                                                          |
| [ClearRequestedMipmapLevel](/engine/6000.6/script-reference/unityengine/cubemap/clearrequestedmipmaplevel.md)       | Resets the requestedMipmapLevel field.                                                                                           |
| [CopyPixels](/engine/6000.6/script-reference/unityengine/cubemap/copypixels.md)                                     | Copies pixel data from another texture on the CPU.                                                                               |
| [GetPixel](/engine/6000.6/script-reference/unityengine/cubemap/getpixel.md)                                         | Gets the pixel color at coordinates (`x`, `y`).                                                                                  |
| [GetPixelData](/engine/6000.6/script-reference/unityengine/cubemap/getpixeldata.md)                                 | Gets the raw data from a texture.                                                                                                |
| [GetPixels](/engine/6000.6/script-reference/unityengine/cubemap/getpixels.md)                                       | Gets the pixel color data for a mipmap level of a face as [Color](/engine/6000.6/script-reference/unityengine/color.md) structs. |
| [IsRequestedMipmapLevelLoaded](/engine/6000.6/script-reference/unityengine/cubemap/isrequestedmipmaplevelloaded.md) | Checks to see whether the mipmap level set by requestedMipmapLevel has finished loading.                                         |
| [SetPixel](/engine/6000.6/script-reference/unityengine/cubemap/setpixel.md)                                         | Sets the pixel color at coordinates (`x`,`y`).                                                                                   |
| [SetPixelData](/engine/6000.6/script-reference/unityengine/cubemap/setpixeldata.md)                                 | Sets the raw data of an entire mipmap level of a face directly in CPU memory.                                                    |
| [SetPixels](/engine/6000.6/script-reference/unityengine/cubemap/setpixels.md)                                       | Sets the pixel colors of an entire mipmap level of a face.                                                                       |
| [SmoothEdges](/engine/6000.6/script-reference/unityengine/cubemap/smoothedges.md)                                   | Performs smoothing of near edge regions.                                                                                         |
| [UpdateExternalTexture](/engine/6000.6/script-reference/unityengine/cubemap/updateexternaltexture.md)               | Updates Unity cubemap to use different native cubemap texture object.                                                            |

## Static Methods

| Method                                                                                                | Description                                                                 |
| ----------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------- |
| [CreateExternalTexture](/engine/6000.6/script-reference/unityengine/cubemap/createexternaltexture.md) | Creates a Unity cubemap out of an externally created native cubemap object. |

## Inheritance

**Inherited Members:**

* [Texture.GenerateAllMips()](/engine/6000.6/script-reference/unityengine/texture/generateallmips.md)
* [Texture.SetGlobalAnisotropicFilteringLimits(int, int)](/engine/6000.6/script-reference/unityengine/texture/setglobalanisotropicfilteringlimits.md)
* [Texture.GetNativeTexturePtr()](/engine/6000.6/script-reference/unityengine/texture/getnativetextureptr.md)
* [Texture.IncrementUpdateCount()](/engine/6000.6/script-reference/unityengine/texture/incrementupdatecount.md)
* [Texture.SetStreamingTextureMaterialDebugProperties()](/engine/6000.6/script-reference/unityengine/texture/setstreamingtexturematerialdebugproperties.md#setstreamingtexturematerialdebugproperties\(\))
* [Texture.SetStreamingTextureMaterialDebugProperties(int)](/engine/6000.6/script-reference/unityengine/texture/setstreamingtexturematerialdebugproperties.md#setstreamingtexturematerialdebugproperties\(int\))
* [Texture.mipmapCount](/engine/6000.6/script-reference/unityengine/texture/mipmapcount.md)
* [Texture.graphicsFormat](/engine/6000.6/script-reference/unityengine/texture/graphicsformat.md)
* [Texture.width](/engine/6000.6/script-reference/unityengine/texture/width.md)
* [Texture.height](/engine/6000.6/script-reference/unityengine/texture/height.md)
* [Texture.dimension](/engine/6000.6/script-reference/unityengine/texture/dimension.md)
* [Texture.isReadable](/engine/6000.6/script-reference/unityengine/texture/isreadable.md)
* [Texture.wrapMode](/engine/6000.6/script-reference/unityengine/texture/wrapmode.md)
* [Texture.wrapModeU](/engine/6000.6/script-reference/unityengine/texture/wrapmodeu.md)
* [Texture.wrapModeV](/engine/6000.6/script-reference/unityengine/texture/wrapmodev.md)
* [Texture.wrapModeW](/engine/6000.6/script-reference/unityengine/texture/wrapmodew.md)
* [Texture.filterMode](/engine/6000.6/script-reference/unityengine/texture/filtermode.md)
* [Texture.anisoLevel](/engine/6000.6/script-reference/unityengine/texture/anisolevel.md)
* [Texture.mipMapBias](/engine/6000.6/script-reference/unityengine/texture/mipmapbias.md)
* [Texture.updateCount](/engine/6000.6/script-reference/unityengine/texture/updatecount.md)
* [Texture.isDataSRGB](/engine/6000.6/script-reference/unityengine/texture/isdatasrgb.md)
* [Texture.imageContentsHash](/engine/6000.6/script-reference/unityengine/texture/imagecontentshash.md)
* [Texture.totalTextureMemory](/engine/6000.6/script-reference/unityengine/texture/totaltexturememory.md)
* [Texture.desiredTextureMemory](/engine/6000.6/script-reference/unityengine/texture/desiredtexturememory.md)
* [Texture.targetTextureMemory](/engine/6000.6/script-reference/unityengine/texture/targettexturememory.md)
* [Texture.currentTextureMemory](/engine/6000.6/script-reference/unityengine/texture/currenttexturememory.md)
* [Texture.nonStreamingTextureMemory](/engine/6000.6/script-reference/unityengine/texture/nonstreamingtexturememory.md)
* [Texture.streamingMipmapUploadCount](/engine/6000.6/script-reference/unityengine/texture/streamingmipmapuploadcount.md)
* [Texture.streamingRendererCount](/engine/6000.6/script-reference/unityengine/texture/streamingrenderercount.md)
* [Texture.streamingTextureCount](/engine/6000.6/script-reference/unityengine/texture/streamingtexturecount.md)
* [Texture.nonStreamingTextureCount](/engine/6000.6/script-reference/unityengine/texture/nonstreamingtexturecount.md)
* [Texture.streamingTexturePendingLoadCount](/engine/6000.6/script-reference/unityengine/texture/streamingtexturependingloadcount.md)
* [Texture.streamingTextureLoadingCount](/engine/6000.6/script-reference/unityengine/texture/streamingtextureloadingcount.md)
* [Texture.streamingTextureForceLoadAll](/engine/6000.6/script-reference/unityengine/texture/streamingtextureforceloadall.md)
* [Texture.streamingTextureDiscardUnusedMips](/engine/6000.6/script-reference/unityengine/texture/streamingtexturediscardunusedmips.md)
* [Texture.allowThreadedTextureCreation](/engine/6000.6/script-reference/unityengine/texture/allowthreadedtexturecreation.md)
* [Texture.graphicsTexture](/engine/6000.6/script-reference/unityengine/texture/graphicstexture.md)
* [Object.GetEntityId()](/engine/6000.6/script-reference/unityengine/object/getentityid.md)
* [Object.GetHashCode()](/engine/6000.6/script-reference/unityengine/object/gethashcode.md)
* [Object.InstantiateAsync\<T>(T)](/engine/6000.6/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, Transform)](/engine/6000.6/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, Vector3, Quaternion)](/engine/6000.6/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, Transform, Vector3, Quaternion)](/engine/6000.6/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int)](/engine/6000.6/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Transform)](/engine/6000.6/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Vector3, Quaternion)](/engine/6000.6/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, ReadOnlySpan\<Vector3>, ReadOnlySpan\<Quaternion>)](/engine/6000.6/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Transform, Vector3, Quaternion)](/engine/6000.6/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Transform, Vector3, Quaternion, CancellationToken)](/engine/6000.6/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Transform, ReadOnlySpan\<Vector3>, ReadOnlySpan\<Quaternion>)](/engine/6000.6/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Transform, ReadOnlySpan\<Vector3>, ReadOnlySpan\<Quaternion>, CancellationToken)](/engine/6000.6/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, InstantiateParameters, CancellationToken)](/engine/6000.6/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, InstantiateParameters, CancellationToken)](/engine/6000.6/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, Vector3, Quaternion, InstantiateParameters, CancellationToken)](/engine/6000.6/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Vector3, Quaternion, InstantiateParameters, CancellationToken)](/engine/6000.6/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, ReadOnlySpan\<Vector3>, ReadOnlySpan\<Quaternion>, InstantiateParameters, CancellationToken)](/engine/6000.6/script-reference/unityengine/object/instantiateasync.md)
* [Object.Instantiate(Object, Vector3, Quaternion)](/engine/6000.6/script-reference/unityengine/object/instantiate.md#instantiate\(object-vector3-quaternion\))
* [Object.Instantiate(Object, Vector3, Quaternion, Transform)](/engine/6000.6/script-reference/unityengine/object/instantiate.md#instantiate\(object-vector3-quaternion-transform\))
* [Object.Instantiate(Object)](/engine/6000.6/script-reference/unityengine/object/instantiate.md#instantiate\(object\))
* [Object.Instantiate(Object, Scene)](/engine/6000.6/script-reference/unityengine/object/instantiate.md#instantiate\(object-scene\))
* [Object.Instantiate\<T>(T, InstantiateParameters)](/engine/6000.6/script-reference/unityengine/object/instantiate.md)
* [Object.Instantiate\<T>(T, Vector3, Quaternion, InstantiateParameters)](/engine/6000.6/script-reference/unityengine/object/instantiate.md)
* [Object.Instantiate(Object, Transform)](/engine/6000.6/script-reference/unityengine/object/instantiate.md#instantiate\(object-transform\))
* [Object.Instantiate(Object, Transform, bool)](/engine/6000.6/script-reference/unityengine/object/instantiate.md#instantiate\(object-transform-bool\))
* [Object.Instantiate\<T>(T)](/engine/6000.6/script-reference/unityengine/object/instantiate.md)
* [Object.Instantiate\<T>(T, Vector3, Quaternion)](/engine/6000.6/script-reference/unityengine/object/instantiate.md)
* [Object.Instantiate\<T>(T, Vector3, Quaternion, Transform)](/engine/6000.6/script-reference/unityengine/object/instantiate.md)
* [Object.Instantiate\<T>(T, Transform)](/engine/6000.6/script-reference/unityengine/object/instantiate.md)
* [Object.Instantiate\<T>(T, Transform, bool)](/engine/6000.6/script-reference/unityengine/object/instantiate.md)
* [Object.Destroy(Object, float)](/engine/6000.6/script-reference/unityengine/object/destroy.md)
* [Object.DestroyImmediate(Object, bool)](/engine/6000.6/script-reference/unityengine/object/destroyimmediate.md)
* [Object.FindObjectsByType(Type)](/engine/6000.6/script-reference/unityengine/object/findobjectsbytype.md#findobjectsbytype\(type\))
* [Object.FindObjectsByType(Type, FindObjectsInactive)](/engine/6000.6/script-reference/unityengine/object/findobjectsbytype.md#findobjectsbytype\(type-findobjectsinactive\))
* [Object.DontDestroyOnLoad(Object)](/engine/6000.6/script-reference/unityengine/object/dontdestroyonload.md)
* [Object.FindAnyObjectByType\<T>()](/engine/6000.6/script-reference/unityengine/object/findanyobjectbytype.md#findanyobjectbytypet\(\))
* [Object.FindAnyObjectByType\<T>(FindObjectsInactive)](/engine/6000.6/script-reference/unityengine/object/findanyobjectbytype.md#findanyobjectbytypet\(findobjectsinactive\))
* [Object.FindObjectsByType\<T>()](/engine/6000.6/script-reference/unityengine/object/findobjectsbytype.md#findobjectsbytypet\(\))
* [Object.FindObjectsByType\<T>(FindObjectsInactive)](/engine/6000.6/script-reference/unityengine/object/findobjectsbytype.md#findobjectsbytypet\(findobjectsinactive\))
* [Object.FindAnyObjectByType(Type)](/engine/6000.6/script-reference/unityengine/object/findanyobjectbytype.md#findanyobjectbytype\(type\))
* [Object.FindAnyObjectByType(Type, FindObjectsInactive)](/engine/6000.6/script-reference/unityengine/object/findanyobjectbytype.md#findanyobjectbytype\(type-findobjectsinactive\))
* [Object.ToString()](/engine/6000.6/script-reference/unityengine/object/tostring.md)
* [Object.name](/engine/6000.6/script-reference/unityengine/object/name.md)
* [Object.hideFlags](/engine/6000.6/script-reference/unityengine/object/hideflags.md)

### Operators

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