UnityEngine.Texture2D
class UnityEngine.Texture2D
Fields and Properties:
- UnityEngine.TextureFormat format
- bool ignoreMipmapLimit
- (static) UnityEngine.Texture2D UnityEngine.Texture2D.whiteTexture
- (static) UnityEngine.Texture2D UnityEngine.Texture2D.blackTexture
- (static) UnityEngine.Texture2D UnityEngine.Texture2D.redTexture
- (static) UnityEngine.Texture2D UnityEngine.Texture2D.grayTexture
- (static) UnityEngine.Texture2D UnityEngine.Texture2D.linearGrayTexture
- (static) UnityEngine.Texture2D UnityEngine.Texture2D.normalTexture
- bool isReadable
- bool vtOnly
- bool streamingMipmaps
- int streamingMipmapsPriority
- int requestedMipmapLevel
- int minimumMipmapLevel
- int calculatedMipmapLevel
- int desiredMipmapLevel
- int loadingMipmapLevel
- int loadedMipmapLevel
- bool alphaIsTransparency
Constructors:
- UnityEngine.Texture2D.New(int, int, UnityEngine.Experimental.Rendering.DefaultFormat, UnityEngine.Experimental.Rendering.TextureCreationFlags)
- UnityEngine.Texture2D.New(int, int, UnityEngine.Experimental.Rendering.GraphicsFormat, UnityEngine.Experimental.Rendering.TextureCreationFlags)
- UnityEngine.Texture2D.New(int, int, UnityEngine.Experimental.Rendering.GraphicsFormat, int, UnityEngine.Experimental.Rendering.TextureCreationFlags)
- UnityEngine.Texture2D.New(int, int, UnityEngine.TextureFormat, int, bool)
- UnityEngine.Texture2D.New(int, int, UnityEngine.TextureFormat, bool, bool)
- UnityEngine.Texture2D.New(int, int, UnityEngine.TextureFormat, bool)
- UnityEngine.Texture2D.New(int, int)
Methods:
- void Compress(bool)
- void ClearRequestedMipmapLevel()
- bool IsRequestedMipmapLevelLoaded()
- void ClearMinimumMipmapLevel()
- void UpdateExternalTexture(System.IntPtr)
- byte[] GetRawTextureData()
- UnityEngine.Color[] GetPixels(int, int, int, int, int)
- UnityEngine.Color[] GetPixels(int, int, int, int)
- UnityEngine.Color[] GetPixels(int)
- UnityEngine.Color[] GetPixels()
- UnityEngine.Color32[] GetPixels32(int)
- UnityEngine.Color32[] GetPixels32()
- UnityEngine.Rect[] PackTextures(UnityEngine.Texture2D[], int, int, bool)
- UnityEngine.Rect[] PackTextures(UnityEngine.Texture2D[], int, int)
- UnityEngine.Rect[] PackTextures(UnityEngine.Texture2D[], int)
- (static) UnityEngine.Texture2D UnityEngine.Texture2D.CreateExternalTexture(int, int, UnityEngine.TextureFormat, bool, bool, System.IntPtr)
- void SetPixel(int, int, UnityEngine.Color)
- void SetPixel(int, int, UnityEngine.Color, int)
- void SetPixels(int, int, int, int, UnityEngine.Color[], int)
- void SetPixels(int, int, int, int, UnityEngine.Color[])
- void SetPixels(UnityEngine.Color[], int)
- void SetPixels(UnityEngine.Color[])
- UnityEngine.Color GetPixel(int, int)
- UnityEngine.Color GetPixel(int, int, int)
- UnityEngine.Color GetPixelBilinear(float, float)
- UnityEngine.Color GetPixelBilinear(float, float, int)
- void LoadRawTextureData(System.IntPtr, int)
- void LoadRawTextureData(byte[])
- void Apply(bool, bool)
- void Apply(bool)
- void Apply()
- bool Resize(int, int)
- bool Resize(int, int, UnityEngine.TextureFormat, bool)
- bool Resize(int, int, UnityEngine.Experimental.Rendering.GraphicsFormat, bool)
- void ReadPixels(UnityEngine.Rect, int, int, bool)
- void ReadPixels(UnityEngine.Rect, int, int)
- (static) bool UnityEngine.Texture2D.GenerateAtlas(UnityEngine.Vector2[], int, int,
System.Collections.Generic.List<UnityEngine.Rect>
) - void SetPixels32(UnityEngine.Color32[], int)
- void SetPixels32(UnityEngine.Color32[])
- void SetPixels32(int, int, int, int, UnityEngine.Color32[], int)
- void SetPixels32(int, int, int, int, UnityEngine.Color32[])