I am currently importing a lot of textures for the UI and having to set them to Sprite in the Editor after importing them, is there a way to have the Texture Type setting default to Sprite UI on import?
(I will use a sprite sheet in the future but I am prototyping atm so doing this a lot while checking new items)
I think if you select 2d mode in the project settings, that will default to making them sprites.
Also you can use AssetPostProcessor if you want get a bit fancier and/or set up pipeline.
We use assetpostprocessor and similar to ensure that everything auto imports as we want. We have a range of scriptable objects within the project that act as settings containers, so you can edit the defaults quickly and also interchange the settings by swapping out said file. It also allows it to go through git which is nice.
The nice thing about this approach that @zombiegorilla semi-mentioned is that you can also do specific things based on the results. So we have it automatically create prefabs and seed them in scenes and other magic like that based on the naming convention of what was imported. Its able to set up entire complex objects without much tinkering from a designer this way
Indeed. You can basically do whatever you want, as long as you have planned it out. We have used in the past to generate assetbundles on import/change of assets, preflight assets and even parse and stick data into a different format (mostly for meshes). Currently I just use it for mostly setting up image settings via folder. For example anything dropped in to a subfolder of the UI is converted to ui/sprites. I was tagging them based on folder (and a bit of name parsing), though my next task when I get some time is auto populate the new atlases.
If you’re importing a lot of textures at the same time, you can also just select them all in the editor and change them to sprite at the same time instead of one by one. Won’t help of course if your workflow is importing one off textures frequently.