Vixen
dd8b0a81
csharp
public record class TextureImportSettings

How one texture is imported.

Read the guide page for this →

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 (15)

  • BakedMaterialImageTestsVixen.Graphics.Golden.Tests
  • DdsImportTestsVixen.Editor.Assets.Tests
  • HdrImportTestsVixen.Editor.Assets.Tests
  • ImportSettingsMirrorTestsVixen.Editor.AssetEditors.Tests
  • MaterialBakeVixen.Editor.Assets
  • MaterialBakeTestsVixen.Editor.Assets.Tests
  • MaterialMapImageVixen.Editor.Assets
  • MeshMapAssetTestsVixen.Editor.App.Tests
  • MeshMapBakeVixen.Editor.Assets
  • MeshMapEncodingTestsVixen.Editor.Assets.Tests
  • MeshMapImageVixen.Editor.Assets
  • ReflectedTypeTestsVixen.Editor.Scripts.Tests
  • TextureImporterVixen.Editor.Assets
  • TextureImporterTestsVixen.Editor.Assets.Tests
  • TypeRegistrationVixen.Editor.Assets