Texture importer lets you modify Texture2D import settings from editor scripts.
Settings of this class match the ones exposed in Texture Import Settings.
| allowAlphaSplitting | Allows alpha splitting on relevant platforms for this texture. |
| alphaIsTransparency | If the provided alpha channel is transparency, enable this to prefilter the color to avoid filtering artifacts. |
| alphaSource | Select how the alpha of the imported texture is generated. |
| alphaTestReferenceValue | Returns or assigns the alpha test reference value. |
| androidETC2FallbackOverride | ETC2 texture decompression fallback override on Android devices that don't support ETC2. |
| anisoLevel | Anisotropic filtering level of the texture. |
| borderMipmap | Keep texture borders the same when generating mipmaps? |
| compressionQuality | Quality of Texture Compression in the range [0..100]. |
| convertToNormalmap | Преобразование высот в карту нормалей? |
| crunchedCompression | Use crunched compression when available. |
| fadeout | Fade out mip levels to gray color? |
| filterMode | Режим фильтрации текстур |
| generateCubemap | Cubemap generation mode. |
| heightmapScale | Amount of bumpyness in the heightmap. |
| ignorePngGamma | Ignore the Gamma attribute in PNG files. This property does not effect other file formats. |
| isReadable | Set this to true if you want texture data to be readable from scripts. Set it to false to prevent scripts from reading texture data. |
| maxTextureSize | Максимальный размер текстуры |
| mipMapBias | Mip map bias of the texture. |
| mipmapEnabled | Generate Mip Maps. |
| mipmapFadeDistanceEnd | Mip level where texture is faded out completely. |
| mipmapFadeDistanceStart | Mip level where texture begins to fade out. |
| mipmapFilter | Mipmap filtering mode. |
| mipMapsPreserveCoverage | Enables or disables coverage-preserving alpha MIP mapping. |
| normalmapFilter | Normal map filtering mode. |
| npotScale | Scaling mode for non power of two textures. |
| qualifiesForSpritePacking | Returns true if this TextureImporter is setup for Sprite packing. |
| secondarySpriteTextures | Secondary textures for the imported Sprites. |
| spriteBorder | Border sizes of the generated sprites. |
| spriteImportMode | Selects Single or Manual import mode for Sprite textures. |
| spritePackingTag | Selects the Sprite packing tag. |
| spritePivot | The point in the Sprite object's coordinate space where the graphic is located. |
| spritePixelsPerUnit | The number of pixels in the sprite that correspond to one unit in world space. |
| spritesheet | Array representing the sections of the atlas corresponding to individual sprite graphics. |
| sRGBTexture | Is texture storing color data? |
| streamingMipmaps | Enable mipmap streaming for this texture. |
| streamingMipmapsPriority | Relative priority for this texture when reducing memory size in order to hit the memory budget. |
| textureCompression | Compression of imported texture. |
| textureShape | The shape of the imported texture. |
| textureType | Which type of texture are we dealing with here. |
| vtOnly | When 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. |
| wrapMode | Texture coordinate wrapping mode. |
| wrapModeU | Texture U coordinate wrapping mode. |
| wrapModeV | Texture V coordinate wrapping mode. |
| wrapModeW | Texture W coordinate wrapping mode for Texture3D. |
| ClearPlatformTextureSettings | Очистить параметры выбранной платформы |
| DoesSourceTextureHaveAlpha | Does textures source image have alpha channel. |
| GetAutomaticFormat | Returns the TextureImporterFormat that would be automatically chosen for this platform. |
| GetDefaultPlatformTextureSettings | Get the default platform specific texture settings. |
| GetPlatformTextureSettings | Get platform specific texture settings. |
| ReadTextureImportInstructions | Reads the active texture output instructions of this TextureImporter. |
| ReadTextureSettings | Прочитайте настройки текстуры в классе TextureImporterSettings |
| SetPlatformTextureSettings | Установите определенные параметры выбранной платформы |
| SetTextureSettings | Set texture importers settings from TextureImporterSettings class. |
| IsDefaultPlatformTextureFormatValid | Validates ref::TextureImporterFormat:: based on the type of the current format (ref::TextureImporterType::) and the default platform. |
| IsPlatformTextureFormatValid | Validates ref::TextureImporterFormat:: based on a specified import type (ref::TextureImporterType::) and a specified build target (ref::BuildTarget::.). |
| assetBundleName | Get or set the AssetBundle name. |
| assetBundleVariant | Получите или установите любые пользовательские данные. |
| assetPath | Имя пути ассета для этого импортера. (Read Only) |
| importSettingsMissing | The value is true when no meta file is provided with the imported asset. |
| userData | Получите или установите любые пользовательские данные. |
| AddRemap | Map a sub-asset from an imported asset (such as an FBX file) to an external Asset of the same type. |
| GetExternalObjectMap | Gets a copy of the external object map used by the AssetImporter. |
| RemoveRemap | Removes an item from the map of external objects. |
| SaveAndReimport | Save asset importer settings if asset importer is dirty. |
| SetAssetBundleNameAndVariant | Получите или установите любые пользовательские данные. |
| SupportsRemappedAssetType | Checks if the AssetImporter supports remapping the given asset type. |
| GetAtPath | Восстанавливает импортер ассетов для ассета в path. |