TextureRule


Texture Rule - Automatically Set Texture Size, Compression, and Format with Config Rules


by Sumy


Price History +

When importing resources, the system automatically processes based on the texture configuration file in the current folder. If there is no configuration in the current folder, it will use the configuration from the parent folder.


Textures can be configured across multiple dimensions:

- textureType

- spriteImportMode

- sRGBTexture

- alphaSource

- alphaIsTransparency

- npotScale

- isReadable

- mipmapEnabled

- maxTextureSize

- format

- alphaFormat

- textureCompression

- compressionQuality


For texture resources in the same folder, different configuration files can be used for Android and iOS:

- android.texturesettings

- ios.texturesettings


This approach allows for platform-specific texture settings while maintaining a hierarchical fallback mechanism for configurations.