editor
editor copied to clipboard
Sprite Component: synchronize clip and sprite names
Hi! When working with sprites, most of the time I'll want the clip name in an animated SpriteComponent to match the Sprite that's assigned to it. Currently clips are named using a default "Clip" + the next free number, e.g. "Clip 3".
I can imagine there could be some utility from the indirection here, but the default name is almost never useful. I can think of a few potential UX improvements:
- When assigning a sprite, if the existing name first the default pattern, automatically promote the sprite name, e.g. if you're dragging a sprite named "Punch" over to a clip slot named "Clip 4", then rename the clip to "Punch". This would still let folks proceed to then overwrite the name as they would today, but improve the default behavior.
- Add a project setting to always copy the Sprite name on assignment. In some cases, keeping the names in sync is important, and some users might want the name to always be copied on assignment.
- Related but not the same: a neat UX affordance to add a new clip would be to drag a sprite asset and drop it directly on the "+ add clip" button, which you'd then expect to create a new clip, assign the sprite, and sync the names.