Unity has the ability to set boundaries for a sprite. This allows me to stretch the image without losing quality and save borders. This is usually used to create menus and pop-ups. I add such a sprite through the UI - Image menu, it is displayed as Image, and the desired stretching occurs. The problem is that I can't repeat the same thing by inserting a sprite through the menu using 2D Objects - Sprites. It is added to the game as a Sprite Renderer, which simply stretches the original sprite, ignoring its boundaries. How can I achieve sprite stretching when adding through 2D Objects - Sprites?
I tried adding an Image component, but after that the sprite stops displaying at all.
Canvas+Imagecomponent.. or go for UI Toolkit. If it is rather for interacting with other sprite renderers then yes go for that ... But here it seems you would rather want to go with the UI as it seems to be sort of a speech bubble