- Home /
How to get the already slice and scale-up properly sprite of a UI image at runtime?
I want to get the already slice and scale-up properly sprite of a UI image at runtime. The image.sprite only returns the original referenced sprite. If there isn't any built-in way to do so then how can I manually calculate and create it myself?
I'm currently using Unity 2020.3.12f1 and I'm talking about UnityEngine.UI, not UIElements. But if my problem can be solved easily in the new UIElements system, I'll happy to learn it.
Comment
Your answer
Follow this Question
Related Questions
Scaling problem with image on buttons. 1 Answer
Messy tiled sprites 1 Answer
Changing Sprites Color According to Value 2 Answers
Unity 4.6: How to fit center byte array png in the Image UI? 1 Answer