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.

TextureImporterSettings

Namespace: UnityEditor

Description

Stores settings of a TextureImporter.

See Also: TextureImporter.

Variables

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.
spritePixelsToUnitsScale factor between pixels in the sprite graphic and world space units.

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.