Version: 5.3 (switch to 5.4b)
IdiomaEnglish
  • C#
  • JS

Idioma de script

Selecciona tu lenguaje de programación favorito. Todos los fragmentos de código serán mostrados en este lenguaje.

TextureImporter

class in UnityEditor

/

Hereda de:AssetImporter

Sugiere un cambio

¡Éxito!

Gracias por ayudarnos a mejorar la calidad de la documentación de Unity. A pesar de que no podemos aceptar todas las sugerencias, leemos cada cambio propuesto por nuestros usuarios y actualizaremos los que sean aplicables.

Cerrar

No se puedo enviar

Por alguna razón su cambio sugerido no pudo ser enviado. Por favor <a>intente nuevamente</a> en unos minutos. Gracias por tomarse un tiempo para ayudarnos a mejorar la calidad de la documentación de Unity.

Cerrar

Cancelar

Cambiar al Manual

Descripción

Texture importer lets you modify Texture2D import settings from editor scripts.

Settings of this class match the ones exposed in Texture Import Settings.

Variables

anisoLevelNivel de filtrado anisotrópico de la textura.
borderMipmapKeep texture borders the same when generating mipmaps?
compressionQualityCalidad de compresión de la textura en el rango [0..100].
convertToNormalmapConvert heightmap to normal map?
fadeoutFade out mip levels to gray color?
filterModeModo de filtrado de la textura.
generateCubemapCubemap generation mode.
generateMipsInLinearSpaceShould mip maps be generated with gamma correction?
grayscaleToAlphaGenerate alpha channel from intensity?
heightmapScaleAmount of bumpyness in the heightmap.
isReadableIs texture data readable from scripts.
lightmapIs this texture a lightmap?
linearTextureIs texture storing non-color data?
maxTextureSizeTamaño máximo de la textura.
mipMapBiasMip map bias of the texture.
mipmapEnabledGenerate mip maps for the texture?
mipmapFadeDistanceEndMip level where texture is faded out completely.
mipmapFadeDistanceStartMip level where texture begins to fade out.
mipmapFilterMipmap filtering mode.
normalmap¿Es esta textura un mapa de normales?
normalmapFilterModo de filtrado del mapa de normales.
npotScaleScaling mode for non power of two textures.
qualifiesForSpritePackingReturns true if this TextureImporter is setup for Sprite packing.
spriteBorderBorder sizes of the generated sprites.
spriteImportModeSelects Single or Manual import mode for Sprite textures.
spritePackingTagSelects the Sprite packing tag.
spritePivotThe point in the Sprite object's coordinate space where the graphic is located.
spritePixelsPerUnitThe number of pixels in the sprite that correspond to one unit in world space.
spritesheetArray representing the sections of the atlas corresponding to individual sprite graphics.
textureFormatFormato de la textura importada.
textureTypeWhich type of texture are we dealing with here.
wrapModeWrap mode (Repeat or Clamp) of the texture.

Funciones Públicas

ClearPlatformTextureSettingsClear specific target platform settings.
DoesSourceTextureHaveAlpha¿Tiene la imagen de la textura un canal alfa?
GetAllowsAlphaSplittingGetter for the flag that allows Alpha splitting on the imported texture when needed (for example ETC1 compression for textures with transparency).
GetPlatformTextureSettingsGet platform specific texture settings.
ReadTextureImportInstructionsReads the active texture output instructions of this TextureImporter.
ReadTextureSettingsRead texture settings into TextureImporterSettings class.
SetAllowsAlphaSplittingSetter for the flag that allows Alpha splitting on the imported texture when needed (for example ETC1 compression for textures with transparency).
SetPlatformTextureSettingsSet specific target platform settings.
SetTextureSettingsSet texture importers settings from TextureImporterSettings class.

Miembros heredados

Variables

assetBundleNameGet or set the AssetBundle name.
assetBundleVariantGet or set the AssetBundle variant.
assetPathThe path name of the asset for this importer. (Read Only)
userDataGet or set any user data.
hideFlagsShould the object be hidden, saved with the scene or modifiable by the user?
nameEl nombre del objeto.

Funciones Públicas

SaveAndReimportSave asset importer settings if asset importer is dirty.
SetAssetBundleNameAndVariantSet the AssetBundle name and variant.
GetInstanceIDReturns the instance id of the object.
ToStringDevuelve el nombre del objeto.

Funciones Estáticas

GetAtPathRetrieves the asset importer for the asset at path.
DestroyElimina un gameobject, componente o 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.
FindObjectOfTypeDevuelve el primer objeto activo cargado de tipo type.
FindObjectsOfTypeDevuelve una lista de todos los objetos activos cargados de tipo type.
InstantiateDevuelve el nombre del objeto.

Operadores

bool¿Existe el objeto?
operator !=Compares if two objects refer to a different object.
operator ==Compares two object references to see if they refer to the same object.