Version: 2020.2
言語: 日本語


class in UnityEngine





3D テクスチャをハンドリングするクラス、3D テクスチャアセット の作成に使用します。

3D テクスチャは一般的にシェーダーからルックアップテーブルとして使われるか、ボリューメトリックデータとして表されます。

Typically you'd create a 3D texture, fill it up with data (SetPixels or SetPixels32) and call Apply to upload the data to the GPU.

Note that this class does not support Texture3D creation with a Crunch compression TextureFormat.


isReadableReturns true if this 3D texture is Read/Write Enabled; otherwise returns false. For dynamic textures created from script, always returns true.


Texture3D新規に空の 3D テクスチャを作成します

Public 関数

Apply SetPixels で変更された設定をすべて適用します
GetPixelReturns the pixel color that represents one mip level of the 3D texture at coordinates (x,y,z).
GetPixelBilinearReturns the filtered pixel color that represents one mip level of the 3D texture at normalized coordinates (u,v,w).
GetPixelDataGets raw data from a Texture for reading or writing.
GetPixelsこの機能は、3D テクスチャの 1 ミップレベルを描画するピクセル色の配列を返します。
GetPixels32この機能は、3D テクスチャの 1 ミップレベルを描画するピクセル色の配列を返します。
SetPixelSets the pixel color that represents one mip level of the 3D texture at coordinates (x,y,z).
SetPixelDataSet pixel values from raw preformatted data.
SetPixels3D テクスチャのピクセルカラーを設定します
SetPixels323D テクスチャのピクセルカラーを設定します
UpdateExternalTexture異なるネイティブのテクスチャオブジェクトを使うために Unity のテクスチャを更新します。

Static 関数

CreateExternalTexture外部で作成されたネイティブのテクスチャオブジェクトから Unity テクスチャを作成します。


Static 変数

allowThreadedTextureCreationAllow Unity internals to perform texture creation on any thread (rather than the dedicated render thread).
currentTextureMemoryThe amount of memory currently being used by the non-streaming and mipmap streaming textures combined.
desiredTextureMemoryThis amount of texture memory would be used before the texture streaming budget is applied.
GenerateAllMipsCan 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.
nonStreamingTextureCountNumber of non-streaming textures.
nonStreamingTextureMemoryTotal amount of memory being used by non-streaming textures.
streamingMipmapUploadCountHow many times has a texture been uploaded due to texture mipmap streaming.
streamingRendererCountNumber of renderers registered with the texture streaming system.
streamingTextureCountNumber of streaming textures.
streamingTextureDiscardUnusedMipsForce the streaming texture system to discard all unused mipmaps immediately, rather than caching them until the texture memory budget is exceeded.
streamingTextureForceLoadAllForce streaming textures to load all mipmap levels.
streamingTextureLoadingCountNumber of streaming textures with mipmaps currently loading.
streamingTexturePendingLoadCountNumber of streaming textures with outstanding mipmaps to be loaded.
targetTextureMemoryThe amount of memory used by textures after the mipmap streaming and budget are applied and loading is complete.
totalTextureMemoryThe total amount of memory that would be used by all textures at mipmap level 0.


hideFlagsShould the object be hidden, saved with the Scene or modifiable by the user?
dimensionテクスチャの次元 (タイプ)。読み取り専用。
graphicsFormatReturns the GraphicsFormat format or color format of a texture object.
imageContentsHashThe hash value of the Texture.
isReadableReturns 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.
mipMapBiasThe mipmap bias of the texture.
updateCountThis counter is incremented when the texture is updated.
wrapModeTexture coordinate wrapping mode.
wrapModeUTexture U coordinate wrapping mode.
wrapModeVTexture V coordinate wrapping mode.
wrapModeWTexture W coordinate wrapping mode for Texture3D.

Public 関数

GetInstanceIDオブジェクトのインスタンス ID を返します
ToStringReturns the name of the object.
GetNativeTexturePtrテクスチャリソースへのネイティブ (グラフィックス API に内在する) ポインターを取得します。
IncrementUpdateCountIncrement the update counter.

Static 関数

DestroyRemoves a GameObject, component or asset.
DestroyImmediateDestroys the object obj immediately. You are strongly recommended to use Destroy instead.
DontDestroyOnLoadDo not destroy the target Object when loading a new Scene.
FindObjectOfTypeタイプ type から最初に見つけたアクティブのオブジェクトを返します
FindObjectsOfTypeGets a list of all loaded objects of Type type.
Instantiateoriginal のオブジェクトをクローンします
SetStreamingTextureMaterialDebugPropertiesUploads additional debug information to materials using textures set to stream mipmaps.


operator !=二つのオブジェクトが異なるオブジェクトを参照しているか比較します
operator ==2つのオブジェクト参照が同じオブジェクトを参照しているか比較します。