Class Cubemap
Assembly: UnityEngine.dll
Syntax
public sealed class Cubemap : Texture
Constructors
|
Improve this Doc
View Source
Cubemap(Int32, GraphicsFormat, TextureCreationFlags)
Declaration
public Cubemap(int width, GraphicsFormat format, TextureCreationFlags flags)
Parameters
|
Improve this Doc
View Source
Cubemap(Int32, TextureFormat, Boolean)
Declaration
public Cubemap(int width, TextureFormat textureFormat, bool mipChain)
Parameters
Properties
Declaration
public TextureFormat format { get; }
Property Value
isReadable
Declaration
public override bool isReadable { get; }
Property Value
Overrides
mipmapCount
Declaration
public int mipmapCount { get; }
Property Value
Methods
|
Improve this Doc
View Source
Apply()
Declaration
|
Improve this Doc
View Source
Apply(Boolean)
Declaration
public void Apply(bool updateMipmaps)
Parameters
Type |
Name |
Description |
Boolean |
updateMipmaps |
|
|
Improve this Doc
View Source
Apply(Boolean, Boolean)
Declaration
public void Apply([DefaultValue("true")] bool updateMipmaps, [DefaultValue("false")] bool makeNoLongerReadable)
Parameters
Type |
Name |
Description |
Boolean |
updateMipmaps |
|
Boolean |
makeNoLongerReadable |
|
|
Improve this Doc
View Source
CreateExternalTexture(Int32, TextureFormat, Boolean, IntPtr)
Declaration
public static Cubemap CreateExternalTexture(int width, TextureFormat format, bool mipmap, IntPtr nativeTex)
Parameters
Returns
|
Improve this Doc
View Source
GetPixel(CubemapFace, Int32, Int32)
Declaration
public Color GetPixel(CubemapFace face, int x, int y)
Parameters
Returns
|
Improve this Doc
View Source
GetPixels(CubemapFace)
Declaration
public Color[] GetPixels(CubemapFace face)
Parameters
Returns
GetPixels(CubemapFace, Int32)
Declaration
public Color[] GetPixels(CubemapFace face, int miplevel)
Parameters
Returns
|
Improve this Doc
View Source
SetPixel(CubemapFace, Int32, Int32, Color)
Declaration
public void SetPixel(CubemapFace face, int x, int y, Color color)
Parameters
|
Improve this Doc
View Source
SetPixels(Color[], CubemapFace)
Declaration
public void SetPixels(Color[] colors, CubemapFace face)
Parameters
SetPixels(Color[], CubemapFace, Int32)
Declaration
public void SetPixels(Color[] colors, CubemapFace face, int miplevel)
Parameters
|
Improve this Doc
View Source
SmoothEdges()
Declaration
public void SmoothEdges()
SmoothEdges(Int32)
Declaration
public void SmoothEdges([DefaultValue("1")] int smoothRegionWidthInPixels)
Parameters
Type |
Name |
Description |
Int32 |
smoothRegionWidthInPixels |
|
Extension Methods