public record class TextureImportSettingsHow one texture is imported.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
Every field here can be overridden per build target by the .meta file's target section, which is how one texture ships uncompressed on a phone and as BC7 on a desktop without two copies of the source existing.
Fields and properties (9)
public int VersionThe importer's own version. Bumping it invalidates every artefact that importer produced.
public TextureContent ContentWhat the bytes mean.
public TextureCompression CompressionWhich compressed format to ship in.
public bool GenerateMipsWhether to build a mip chain. Off costs bandwidth and aliases; on costs a third more memory.
public bool AlphaIsTransparencyWhether the alpha channel is transparency rather than packed data. When it is, the mip filter weights colour by it, which is what stops a cut-out's edge bleeding towards whatever was painted under the transparent part.
public int MaxSizeThe largest the texture may ship at, or zero for no limit.
public SpriteMode SpriteModeWhether this texture produces sprites, and whether it produces one or many.
public float PixelsPerUnitHow many texels of this texture make one world unit.
public SpriteRect[] SpritesWhere each sprite is, in texels of the source image.
Used by (5)
- ImportSettingsMirrorTestsVixen.Editor.AssetEditors.Tests
- ReflectedTypeTestsVixen.Editor.Scripts.Tests
- TextureImporterVixen.Editor.Assets
- TextureImporterTestsVixen.Editor.Assets.Tests
- TypeRegistrationVixen.Editor.Assets