Texture2D.Texture2Dstatic function Texture2D (width : int, height : int) : Texture2DDescriptionCreate a new empty texture. The texture will be width by height size, with an ARGB32 TextureFormat, with mipmaps and in sRGB color space. Usually you will want to set the colors of the texture after creating it, using SetPixel, SetPixels and Apply functions.
JavaScript
function Start () { using UnityEngine; import UnityEngine static function Texture2D (width : int, height : int, format : TextureFormat, mipmap : boolean) : Texture2DDescriptionCreate a new empty texture. The texture will be width by height size, with a given format, with mipmaps or without and in either the linear or sRGB color space. Usually you will want to set the colors of the texture after creating it, using SetPixel, SetPixels and Apply functions.
JavaScript
function Start () { using UnityEngine; import UnityEngine static function Texture2D (width : int, height : int, format : TextureFormat, mipmap : boolean, linear : boolean) : Texture2DDescription |
