class in UnityEditor
/
Inherits from:AssetImporter
/
Implemented in:UnityEditor
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 | Keeps texture borders the same when generating mipmaps. |
compressionQuality | Quality of Texture Compression in the range [0..100]. |
convertToNormalmap | Converts heightmaps to normal maps. |
crunchedCompression | Use crunched compression when available. |
fadeout | Fades out mip levels to a gray color. |
filterMode | Filtering mode of the texture. |
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 | Maximum texture size. |
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 | Determines whether this texture stores 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 | Shape of 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 | Clear specific target platform settings. |
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 | Read texture settings into TextureImporterSettings class. |
SetPlatformTextureSettings | Set specific target platform settings. |
SetTextureSettings | Set texture importers settings from TextureImporterSettings class. |
IsDefaultPlatformTextureFormatValid | Validates TextureImporterFormat based on the type of the current format (TextureImporterType) and the default platform. |
IsPlatformTextureFormatValid | Validates TextureImporterFormat based on a specified import type (TextureImporterType) and a specified build target (BuildTarget.). |
assetBundleName | Get or set the AssetBundle name. |
assetBundleVariant | Get or set the AssetBundle variant. |
assetPath | The path name of the asset for this importer. (Read Only) |
importSettingsMissing | The value is true when no meta file is provided with the imported asset. |
userData | Get or set any user data. |
hideFlags | Should the object be hidden, saved with the Scene or modifiable by the user? |
name | The name of the object. |
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 | Set the AssetBundle name and variant. |
SupportsRemappedAssetType | Checks if the AssetImporter supports remapping the given asset type. |
GetInstanceID | Returns the instance id of the object. |
ToString | Returns the name of the object. |
GetAtPath | Retrieves the asset importer for the asset at path. |
Destroy | Removes a GameObject, component or asset. |
DestroyImmediate | Destroys the object obj immediately. You are strongly recommended to use Destroy instead. |
DontDestroyOnLoad | Do not destroy the target Object when loading a new Scene. |
FindObjectOfType | Returns the first active loaded object of Type type. |
FindObjectsOfType | Gets a list of all loaded objects of Type type. |
Instantiate | Clones the object original and returns the clone. |
bool | Does the object exist? |
operator != | Compares if two objects refer to a different object. |
operator == | Compares two object references to see if they refer to the same object. |
Did you find this page useful? Please give it a rating: