Class that represents textures in C# code.
Use this class to create textures, or to modify existing texture assets.
The ImageConversion class provides extension methods to this class that handle image encoding functionality. For details on those methods, see the ImageConversion documentation.
blackTexture | Gets a small Texture with all black pixels. |
grayTexture | Gets a small Texture with all gray pixels. |
linearGrayTexture | Gets a small Texture with all gray pixels. |
normalTexture | Gets a small Texture with pixels that represent surface normal vectors at a neutral position. |
redTexture | Gets a small Texture with all red pixels. |
whiteTexture | Gets a small Texture with all white pixels. |
alphaIsTransparency | Indicates whether this texture was imported with TextureImporter.alphaIsTransparency enabled. This setting is available only in the Editor scripts. Note that changing this setting will have no effect; it must be enabled in TextureImporter instead. |
calculatedMipmapLevel | The mipmap level calculated by the streaming system, which takes into account the streaming Cameras and the location of the objects containing this Texture. This is unaffected by requestedMipmapLevel or minimumMipmapLevel. |
desiredMipmapLevel | The mipmap level that the streaming system would load before memory budgets are applied. |
format | テクスチャのピクセルデータをフォーマットする |
isReadable | Returns true if the Read/Write Enabled checkbox was checked when the texture was imported; otherwise returns false. For a dynamic Texture created from script, always returns true. For additional information, see TextureImporter.isReadable. |
loadedMipmapLevel | The mipmap level that is currently loaded by the streaming system. |
loadingMipmapLevel | The mipmap level that the mipmap streaming system is in the process of loading. |
minimumMipmapLevel | Restricts the mipmap streaming system to a minimum mip level for this Texture. |
requestedMipmapLevel | The mipmap level to load. |
streamingMipmaps | Determines whether mipmap streaming is enabled for this Texture. |
streamingMipmapsPriority | Sets the relative priority for this Texture when reducing memory size to fit within the memory budget. |
vtOnly | Returns true if the VTOnly checkbox was checked when the texture was imported; otherwise returns false. For additional information, see TextureImporter.vtOnly. |
Texture2D | 新規の空のテクスチャを作成します |
Apply | SetPixel 関数と SetPixels 関数による変更を適用します |
ClearMinimumMipmapLevel | Resets the minimumMipmapLevel field. |
ClearRequestedMipmapLevel | Resets the requestedMipmapLevel field. |
Compress | DXT 形式にテクスチャを圧縮します |
GetPixel | 座標(x, y)のピクセルのカラーを取得します |
GetPixelBilinear | 正規化座標(u, v)でフィルタリングされたピクセルのカラーを取得します |
GetPixelData | Gets raw data from a Texture for reading or writing. |
GetPixels | テクスチャからピクセル色を取得します。 |
GetPixels32 | Color32 形式のピクセルのカラー配列を取得します |
GetRawTextureData | Get raw data from a texture for reading or writing. |
IsRequestedMipmapLevelLoaded | Checks to see whether the mipmap level set by requestedMipmapLevel has finished loading. |
LoadRawTextureData | Raw 形式データを読み取ってテクスチャのピクセルを格納します。 |
PackTextures | テクスチャアトラスに複数のテクスチャをパックします |
ReadPixels | スクリーン画面からテクスチャデータへと保存するためのピクセルデータを読み込みます |
Resize | テクスチャをリサイズします |
SetPixel | 座標(x, y)のピクセルのカラーを設定します |
SetPixelData | Set pixel values from raw preformatted data. |
SetPixels | ピクセルカラー配列を設定します |
SetPixels32 | ピクセルカラー配列を設定します |
UpdateExternalTexture | 異なるネイティブのテクスチャオブジェクトを使うために Unity のテクスチャを更新します。 |
CreateExternalTexture | 外部で作成されたネイティブのテクスチャオブジェクトから Unity テクスチャを作成します。 |
GenerateAtlas | Packs a set of rectangles into a square atlas, with optional padding between rectangles. |
allowThreadedTextureCreation | Allow texture creation to occur on any thread (rather than the dedicated render thread). |
currentTextureMemory | The amount of memory currently being used by the non-streaming and mipmap streaming textures combined. |
desiredTextureMemory | This amount of texture memory would be used before the texture streaming budget is applied. |
GenerateAllMips | Can be used with texture constructors that take a mip count to indicate that all mips should be generated. The value of this field is -1. |
nonStreamingTextureCount | Number of non-streaming textures. |
nonStreamingTextureMemory | Total amount of memory being used by non-streaming textures. |
streamingMipmapUploadCount | How many times has a texture been uploaded due to texture mipmap streaming. |
streamingRendererCount | Number of renderers registered with the texture streaming system. |
streamingTextureCount | Number of streaming textures. |
streamingTextureDiscardUnusedMips | Force the streaming texture system to discard all unused mipmaps immediately, rather than caching them until the texture memory budget is exceeded. |
streamingTextureForceLoadAll | Force streaming textures to load all mipmap levels. |
streamingTextureLoadingCount | Number of streaming textures with mipmaps currently loading. |
streamingTexturePendingLoadCount | Number of streaming textures with outstanding mipmaps to be loaded. |
targetTextureMemory | The amount of memory used by textures after the mipmap streaming and budget are applied and loading is complete. |
totalTextureMemory | The total amount of memory that would be used by all textures at mipmap level 0. |
hideFlags | Should the object be hidden, saved with the Scene or modifiable by the user? |
name | オブジェクト名 |
anisoLevel | テクスチャの異方性フィルタリングのレベル |
dimension | テクスチャの次元 (タイプ)。読み取り専用。 |
filterMode | テクスチャのフィルタリングモード |
graphicsFormat | Returns the GraphicsFormat format or color format of a texture object. |
height | ピクセル単位でのテクスチャの高さ(読み取り専用) |
imageContentsHash | The hash value of the Texture. |
isReadable | Returns true if the Read/Write Enabled checkbox was checked when the texture was imported; otherwise returns false. For a dynamic Texture created from script, always returns true. For additional information, see TextureImporter.isReadable. |
mipMapBias | The mipmap bias of the texture. |
mipmapCount | テクスチャのミップマップレベル(読み取り専用) |
updateCount | This counter is incremented when the texture is updated. |
width | ピクセル単位でのテクスチャの幅(読み取り専用) |
wrapMode | Texture coordinate wrapping mode. |
wrapModeU | Texture U coordinate wrapping mode. |
wrapModeV | Texture V coordinate wrapping mode. |
wrapModeW | Texture W coordinate wrapping mode for Texture3D. |
GetInstanceID | オブジェクトのインスタンス ID を返します |
ToString | Returns the name of the object. |
GetNativeTexturePtr | テクスチャリソースへのネイティブ (グラフィックス API に内在する) ポインターを取得します。 |
IncrementUpdateCount | Increment the update counter. |
Destroy | Removes a GameObject, component or asset. |
DestroyImmediate | Destroys the object obj immediately. You are strongly recommended to use Destroy instead. |
DontDestroyOnLoad | Do not destroy the target Object when loading a new Scene. |
FindObjectOfType | タイプ type から最初に見つけたアクティブのオブジェクトを返します |
FindObjectsOfType | Gets a list of all loaded objects of Type type. |
Instantiate | original のオブジェクトをクローンします |
SetGlobalAnisotropicFilteringLimits | 異方性のリミットを設定します |
SetStreamingTextureMaterialDebugProperties | Uploads additional debug information to materials using textures set to stream mipmaps. |
bool | オブジェクトが存在するかどうか |
operator != | 二つのオブジェクトが異なるオブジェクトを参照しているか比較します |
operator == | 2つのオブジェクト参照が同じオブジェクトを参照しているか比較します。 |