I am trying to write an AssetPostprocessor to change imported PSB file settings after they are imported. the problem is for normal textutes, AssetImporter will return a TextureImporter type and we can change settings. but for PSB files, AssetImporter returns PSDImporter type and there are no methods to change settings. I need to set pivot to center, disable generating mipmap and enable Use crunch compres for all my psb files and could not find my answer in official documentation or in similar questions. Any hints or tips are highly appreciated. Code (CSharp): public class PSBPostImport : AssetPostprocessor { void OnPostprocessTexture(Texture2D texture) { var ext = Path.GetExtension(assetPath); if (ext == ".psb") { AssetImporter importer = AssetImporter.GetAtPath(assetPath); if (importer is PSDImporter psdImporter) { // psdImporter has no usable properties or methods } } } }
Hi, thanks for the feedback. We will look into exposing these settings via API. If you need to change all the textures, you can try using Presets and set them as default. This will allow future new files to have the same settings.
Would really appreciate if you could let us know more about what you need in this thread https://forum.unity.com/threads/psdimporter-api-request.1082291/