I have Sprite objects that can be assigned to Image.sprite, I want to set Image.type to Sliced automatically if the sprite is sliced. Is there a way to check if a sprite object is sliced in code?
I have Sprite objects that can be assigned to Image.sprite, I want to set Image.type to Sliced automatically if the sprite is sliced. Is there a way to check if a sprite object is sliced in code?