As the title said. I’m using Unity 2023.1.f1. Any way to make the default to Single again?
It happened sometime after I changed a sprite to Multiple. I don’t what I did to make it Multiple by default.
As the title said. I’m using Unity 2023.1.f1. Any way to make the default to Single again?
It happened sometime after I changed a sprite to Multiple. I don’t what I did to make it Multiple by default.
i have same problem.
Currently I have fixed the issue by setting a preset, but I’m sure there is another way.
I solved this by creating a TextureImporter preset with SpriteMode set to Single, and set the preset to be default.
I saw that it was reported as a bug but it was resolved as “Won’t Fix” because according to them, most users use the “Multiple” sprite mode by default (I’ve never used it, but I’ll take their word for it).
That said, this is a step backwards for usability. By default it will now not create a usable sprite when you set the texture type to Sprite… You have to install the Sprite Editor package, open the sprite editor, draw a rectangle that covers the entire texture and press Apply, just to get a sprite at all
(Or set the sprite mode back to Single)
So it now requires every user to do one or more extra clicks to get a usable sprite at all, to save one click for users who might want to define multiple sprites.
It’s confusing that it no longer produces a usable sprite by default when you set the texture type to Sprite. I didn’t even know this Multiple sprite mode existed and had to look it up, and it’s a difficult issue to describe in a search engine. It took me a while before I found this thread, and I’m sure there will be lots of other users that will go through the same.
My suggestion would be to either revert the sprite mode to Single or have Multiple produce a usable sprite that covers the entire texture by default to make this workflow as clear / convenient as it was before.
I’ve added a comment on the issue above but I figured I’d post on the Unity forums too, because I’m not sure whether comments on resolved issues are read by Unity staff.
Here’s an editor script that restores the single sprite mode as a default.
Will modify all newly imported sprites to single mode, won’t modify any existing sprites.
Just place it anywhere in your project.
#if UNITY_EDITOR
using UnityEditor;
public class SpriteSingleModeImporter : AssetPostprocessor
{
const int PostProcessOrder = 0;
public override int GetPostprocessOrder() => PostProcessOrder;
void OnPreprocessTexture()
{
var importer = assetImporter as TextureImporter;
if (importer.importSettingsMissing is false)
return;
importer.spriteImportMode = SpriteImportMode.Single;
importer.mipmapEnabled = false;
}
}
#endif
It works! thanks!