Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Texture3D

Namespace: UnityEngine

/

Inherits from: Texture

Description

Class for handling 3D Textures, Use this to create 3D texture assets.

3D textures are commonly used as lookup tables by shaders.

Variables

depthThe depth of the texture.
formatThe format of the pixel data in the texture (Read Only).

Constructors

Texture3DCreate a new empty 3D Texture.

Functions

ApplyActually apply all previous SetPixels changes.
GetPixelsThis function returns an array of pixel colors representing one mip level of the 3D texture.
SetPixelsThis function takes a color array and changes the pixel colors of the 3D texture.

Inherited members

Variables

hideFlagsShould the object be hidden, saved with the scene or modifiable by the user?
nameThe name of the object.
anisoLevelAnisotropic filtering level of the texture.
filterModeFiltering mode of the texture.
heightHeight of the texture in pixels. (Read Only)
mipMapBiasMip map bias of the texture.
widthWidth of the texture in pixels. (Read Only)
wrapModeWrap mode (Repeat or Clamp) of the texture.

Functions

GetInstanceIDReturns the instance id of the object.
ToStringReturns the name of the game object.
GetNativeTextureIDRetrieve native ('hardware') handle to a texture.
GetNativeTexturePtrRetrieve native ('hardware') pointer to a texture.

Static Functions

DestroyRemoves a gameobject, component or asset.
DestroyImmediateDestroys the object obj immediately. You are strongly recommended to use Destroy instead.
DontDestroyOnLoadMakes the object target not be destroyed automatically when loading a new scene.
FindObjectOfTypeReturns the first active loaded object of Type type.
FindObjectsOfTypeReturns a list of all active loaded objects of Type type.
InstantiateClones the object original and returns the clone.
SetGlobalAnisotropicFilteringLimitsSets Anisotropic limits.

Operators

boolDoes the object exist?
operator !=Compares if two objects refer to a different object.
operator ==Compares if two objects refer to the same.