TextureImporter

class in UnityEditor

/

Hereda de:AssetImporter

Cambiar al Manual

Descripción

El importador de texturas le permite a usted modificar los ajustes de importación del Texture2D desde scripts del editor.

Los ajustes de esta clase coinciden con los expuestos en Texture Import Settings.

Variables

allowAlphaSplittingAllows alpha splitting on relevant platforms for this texture.
alphaIsTransparencyIf the provided alpha channel is transparency, enable this to prefilter the color to avoid filtering artifacts.
alphaSourceSelect how the alpha of the imported texture is generated.
alphaTestReferenceValueReturns or assigns the alpha test reference value.
androidETC2FallbackOverrideETC2 texture decompression fallback override on Android devices that don't support ETC2.
anisoLevelNivel de filtrado anisotrópico de la textura.
borderMipmapMantiene los bordes de textura igual cuando se genera mipmaps?
compressionQualityCalidad de compresión de la textura en el rango [0..100].
convertToNormalmapConvertir al heightmap a normal map?
crunchedCompressionUse crunched compression when available.
fadeoutFade hacia fuera los niveles del mip al color gris?
filterModeModo de filtrado de la textura.
generateCubemapModo de generación Cubemap.
heightmapScaleCantidad de bumpyness (rebote) en el heightmap.
ignorePngGammaIgnore the Gamma attribute in PNG files. This property does not effect other file formats.
isReadableSet this to true if you want texture data to be readable from scripts. Set it to false to prevent scripts from reading texture data.
maxTextureSizeTamaño máximo de la textura.
mipMapBiasMip map bias de la textura.
mipmapEnabledGenera Mip Maps.
mipmapFadeDistanceEndEl nivel Mip donde la textura se desvanece completamente.
mipmapFadeDistanceStartLos niveles Mip donde las texturas empiezan a desvanecerse.
mipmapFilterEl modo de filtro Mipmap.
mipMapsPreserveCoverageEnables or disables coverage-preserving alpha MIP mapping.
normalmapFilterModo de filtrado del mapa de normales.
npotScaleModo de escala para no texturas sin potencia a la 2.
qualifiesForSpritePackingRetorna true si este TextureImporter se configura para el empaquetamiento Sprite.
secondarySpriteTexturesSecondary textures for the imported Sprites.
spriteBorderEl tamaño de los bordes de los sprites generados.
spriteImportModeSelecciona el modo de importación Solo o Manual para las textura Sprite.
spritePackingTagSelecciona la etiqueta de empaquetamiento Sprite.
spritePivotEl punto en el espacio de coordenada del objeto Sprite donde el gráfico se ubica.
spritePixelsPerUnitLa cantidad de pixeles en el sprite que corresponden a una unidad en el espacio del mundo.
spritesheetUn arreglo que representa las secciones del atlas correspondiente a gráficos sprite individuales.
sRGBTextureIs texture storing color data?
streamingMipmapsEnable mipmap streaming for this texture.
streamingMipmapsPriorityRelative priority for this texture when reducing memory size in order to hit the memory budget.
textureCompressionCompression of imported texture.
textureShapeShape of imported texture.
textureTypeQué tipo de textura estamos tratando aquí.
vtOnlyWhen enabled, this texture can solely be used in combination with a Texture Stack for Virtual Texturing. When enabled the texture is not guaranteed to be available as a Texture2D in the Player (e.g., not accessible from a script). When disabled, the Player includes the texture both as a Texture2D (e.g., accessible from script) and as a streamable texture in a Texture Stack.
wrapModeTexture coordinate wrapping mode.
wrapModeUTexture U coordinate wrapping mode.
wrapModeVTexture V coordinate wrapping mode.
wrapModeWTexture W coordinate wrapping mode for Texture3D.

Funciones Públicas

ClearPlatformTextureSettingsLimpia los ajustes específicos a la plataforma destino.
DoesSourceTextureHaveAlpha¿Tiene la imagen de la textura un canal alfa?
GetAutomaticFormatReturns the TextureImporterFormat that would be automatically chosen for this platform.
GetDefaultPlatformTextureSettingsGet the default platform specific texture settings.
GetPlatformTextureSettingsObtiene unos ajustes de textura específicos de plataforma.
ReadTextureImportInstructionsLee las instrucciones de salida de la textura activa de este TextureImporter.
ReadTextureSettingsLee los ajustes de textura a la clase TextureImporterSettings.
SetPlatformTextureSettingsEstablece unos ajustes específicos a la plataforma destino.
SetTextureSettingsEstablece los ajustes de importación de textura desde la clase TextureImporterSettings.

Funciones Estáticas

IsDefaultPlatformTextureFormatValidValidates ref::TextureImporterFormat:: based on the type of the current format (ref::TextureImporterType::) and the default platform.
IsPlatformTextureFormatValidValidates ref::TextureImporterFormat:: based on a specified import type (ref::TextureImporterType::) and a specified build target (ref::BuildTarget::.).

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)
importSettingsMissingThe value is true when no meta file is provided with the imported asset.
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

AddRemapMap a sub-asset from an imported asset (such as an FBX file) to an external Asset of the same type.
GetExternalObjectMapGets a copy of the external object map used by the AssetImporter.
RemoveRemapRemoves an item from the map of external objects.
SaveAndReimportSave asset importer settings if asset importer is dirty.
SetAssetBundleNameAndVariantSet the AssetBundle name and variant.
SupportsRemappedAssetTypeChecks if the AssetImporter supports remapping the given asset type.
GetInstanceIDDevuelve el id de la instancia del objeto.
ToStringReturns the name of the object.

Funciones Estáticas

GetAtPathRetrieves the asset importer for the asset at path.
DestroyRemoves a GameObject, component or asset.
DestroyImmediateDestroys the object obj immediately. You are strongly recommended to use Destroy instead.
DontDestroyOnLoadDo not destroy the target Object when loading a new Scene.
FindObjectOfTypeDevuelve el primer objeto activo cargado de tipo type.
FindObjectsOfTypeGets a list of all loaded objects of Type type.
InstantiateClona el objeto original y devuelve el clon.

Operadores

bool¿Existe el objeto?
operator !=Compare si dos objetos se refieren a un objeto diferente.
operator ==Compara dos referencias de objeto para ver si se refieren al mismo objeto.