TextureImportSettings

How a texture source file is baked into cache artifacts. Settings are shared by default and overridable per build target through PerTarget.

Properties

MaxResolution

(int) { get; set }: Longest edge to upload, or 0 for the source resolution. Applied by dropping leading mip levels, which costs nothing and loses nothing for block-compressed data whose chain is already baked.

PerTarget

(Dictionary<string, TextureTargetSettings>) { get; set } = []: Per-target overrides, keyed by TextureBuildTarget. A target absent from the map, or one whose entry leaves a value at its default, inherits the shared setting.

Public Methods

ResolveMaxResolution

public int ResolveMaxResolution(string target)

Resolves the effective resolution cap for target.

Parameters:

  • target (string): A key from TextureBuildTarget.

Returns: int

  • The longest edge to upload, or 0 for the source resolution.