Legacy Documentation: Version 5.0
Language: English
  • C#
  • JS

Script language

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

TextureImporterSettings

Namespace: 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

Switch to Manual

Description

Stores settings of a TextureImporter.

See Also: TextureImporter.

Variables

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.

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.