Cubemap
class in UnityEngine · UnityEngine.CoreModule · inherits from Texture
A cube texture: six square faces. Pixels live in managed memory as colors (quantized as format stores them), each face's row 0 at the top, as Unity lays cubemap faces out. The GPU copy is half floats, so HDR values survive. Skybox/Cubemap and reflection probes use cubemaps.
Constructors 1
Cubemap(int width, TextureFormat textureFormat, bool mipChain)Cubemap(int width, TextureFormat format, int mipCount)Cubemap(int width, TextureFormat textureFormat, bool mipChain, bool createUninitialized)Properties 7
UnityEngine.Rendering.TextureDimension dimension { get; }TextureFormat format { get; }int height { get; set; }bool isDataSRGB { get; }bool isReadable { get; }int mipmapCount { get; }int width { get; set; }Methods 5
void Apply(bool updateMipmaps = true, bool makeNoLongerReadable = false)void Apply(bool updateMipmaps)void Apply()Uploads the faces; mipmaps are regenerated when the cubemap has them.
Color GetPixel(CubemapFace face, int x, int y)Color GetPixel(CubemapFace face, int x, int y, int mip)Color[] GetPixels(CubemapFace face)Color[] GetPixels(CubemapFace face, int miplevel)void SetPixel(CubemapFace face, int x, int y, Color color)void SetPixel(CubemapFace face, int x, int y, Color color, int mip)void SetPixels(Color[] colors, CubemapFace face)void SetPixels(Color[] colors, CubemapFace face, int miplevel)Not in Tassix yet 14
ClearRequestedMipmapLevel CopyPixels CreateExternalTexture GetPixelData IsRequestedMipmapLevelLoaded SetPixelData SmoothEdges UpdateExternalTexture desiredMipmapLevel loadedMipmapLevel loadingMipmapLevel requestedMipmapLevel streamingMipmaps streamingMipmapsPriority
Checked against Unity
Conformance scenarios that exercise it, recorded in Unity and compared event by event.