Version: 2023.1
언어: 한국어

TextureImporterSettings

class in UnityEditor

매뉴얼로 전환

설명

Stores settings of a TextureImporter.

See Also: TextureImporter.

변수

alphaIsTransparencyIf the alpha channel of your texture represents transparency, enable this property to dilate the color channels of visible texels into fully transparent areas. This effectively adds padding around transparent areas that prevents filtering artifacts from forming on their edges. Unity does not support this property for HDR textures.This property makes the color data of invisible texels undefined. Disable this property to preserve invisible texels' original color data.
alphaSourceSelect how the alpha of the imported texture is generated.
alphaTestReferenceValueReturns or assigns the alpha test reference value.
anisoAnisotropic filtering level of the texture.
borderMipmapEnable this to avoid colors seeping out to the edge of the lower Mip levels. Used for light cookies.
convertToNormalMapConvert heightmap to normal map?
cubemapConvolutionConvolution mode.
fadeOutFade out mip levels to gray color?
filterModeFiltering mode of the texture.
flipbookColumnsThe number of columns in the source image for a Texture2DArray or Texture3D.
flipbookRowsThe number of rows in the source image for a Texture2DArray or Texture3D.
flipGreenChannelIndicates whether to invert the green channel values of a normal map.
generateCubemapCubemap generation mode.
heightmapScaleAmount of bumpyness in the heightmap.
ignoreMipmapLimitEnable this flag for textures that should ignore mipmap limit settings.
ignorePngGammaIgnore the Gamma attribute in PNG files. This property does not effect other file formats.
mipmapBiasMipmap bias of the texture.
mipmapEnabledGenerate mipmaps for the texture?
mipmapFadeDistanceEndMip level where texture is faded out to gray completely.
mipmapFadeDistanceStartMip level where texture begins to fade out to gray.
mipmapFilterMipmap filtering mode.
mipMapsPreserveCoverageEnables or disables coverage-preserving alpha mipmapping.
normalMapFilterNormal map filtering mode.
npotScaleScaling mode for non power of two textures.
readableIs texture data readable from scripts.
singleChannelComponentColor or Alpha component Single Channel Textures uses.
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.
spriteGenerateFallbackPhysicsShapeGenerates a default physics shape for a Sprite if a physics shape has not been set by the user.
spriteMeshType SpriteMeshType defines the type of Mesh that TextureImporter generates for a Sprite.
spriteModeSprite texture import mode.
spritePivotPivot point of the Sprite relative to its graphic's rectangle.
spritePixelsPerUnitThe number of pixels in the sprite that correspond to one unit in world space.
spriteTessellationDetailThe tessellation detail to be used for generating the mesh for the associated sprite if the SpriteMode is set to Single. For Multiple sprites, use the SpriteEditor to specify the value per sprite. Valid values are in the range [0-1], with higher values generating a tighter mesh. A default of -1 will allow Unity to determine the value automatically.
sRGBTextureWhether this texture stores data in sRGB (also called gamma) color space.
streamingMipmapsEnable mipmap streaming for this texture.
streamingMipmapsPriorityRelative priority for this texture when reducing memory size in order to hit the memory budget.
swizzleASpecifies the source for the texture's alpha color channel data.
swizzleBSpecifies the source for the texture's blue color channel data.
swizzleGSpecifies the source for the texture's green color channel data.
swizzleRSpecifies the source for the texture's red color channel data.
textureShapeThe shape of the imported texture.
textureTypeWhich type of texture are we dealing with here.
vtOnlyEnable if the texture is purposed solely for use with a Texture Stack for Virtual Texturing.
wrapModeTexture coordinate wrapping mode.
wrapModeUTexture U coordinate wrapping mode.
wrapModeVTexture V coordinate wrapping mode.
wrapModeWTexture W coordinate wrapping mode for Texture3D.

Public 함수

ApplyTextureTypeConfigure parameters to import a texture for a purpose of type, as described here.
CopyToCopy parameters into another TextureImporterSettings object.

정적 함수

EqualTest texture importer settings for equality.