Version: 5.4 beta (switch to 5.3)
LanguageEnglish
  • C#
  • JS

Script language

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

TextureImporterSettings

class in UnityEditor

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Sumbission failed

For some reason your suggested change could not be submitted. Please try again in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Stores settings of a TextureImporter.

See Also: TextureImporter.

Variables

allowsAlphaSplitAllow Alpha splitting on the imported texture when needed (for example ETC1 compression for textures with transparency).
cubemapConvolutionConvolution mode.
cubemapConvolutionExponentDefines how fast Phong exponent wears off in mip maps. Higher value will apply less blur to high resolution mip maps.
cubemapConvolutionStepsDefines how many different Phong exponents to store in mip maps. Higher value will give better transition between glossy and rough reflections, but will need higher texture resolution.
rgbmRGBM encoding mode for HDR textures in TextureImporter.
spriteAlignmentEdge-relative alignment of the sprite graphic.
spriteBorderBorder sizes of the generated sprites.
spriteExtrudeThe number of blank pixels to leave between the edge of the graphic and the mesh.
spriteModeSprite texture import mode.
spritePivotPivot point of the Sprite relative to its graphic's rectangle.
spritePixelsPerUnitThe number of pixels in the sprite that correspond to one unit in world space.
spriteTessellationDetailThe tessellation detail to be used for generating the mesh for the associated sprite if the SpriteMode is set to Single. For Multiple sprites, use the SpriteEditor to specify the value per sprite. Valid values are in the range [0-1], with higher values generating a tighter mesh. A default of -1 will allow Unity to determine the value automatically.

Public Functions

ApplyTextureTypeConfigure parameters to import a texture for a purpose of type, as described here.
CopyToCopy parameters into another TextureImporterSettings object.

Static Functions

EqualTest texture importer settings for equality.