Vixen
02b45cc4
csharp
public record class TextureImportSettings

How 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 Version

    The importer's own version. Bumping it invalidates every artefact that importer produced.

  • public TextureContent Content

    What the bytes mean.

  • public TextureCompression Compression

    Which compressed format to ship in.

  • public bool GenerateMips

    Whether to build a mip chain. Off costs bandwidth and aliases; on costs a third more memory.

  • public bool AlphaIsTransparency

    Whether 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 MaxSize

    The largest the texture may ship at, or zero for no limit.

  • public SpriteMode SpriteMode

    Whether this texture produces sprites, and whether it produces one or many.

  • public float PixelsPerUnit

    How many texels of this texture make one world unit.

  • public SpriteRect[] Sprites

    Where 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