limit scale of Sprite2D
Asked Answered
D

2

0

Hey all, really small question but I can't seem to find the answer. I have an inventory system and when a new item is added to a slot, there's a Sprite2D that is set to the texture of the item. Nothing special. But some images are much too large or too small for the size that I have the slot image underneath. How do I make sure all my images are scaled appropriately? Can I set it so that if an image is too small it scales up, or if too large scales down?

Or do I just need to make all my item images the same scale? I believe the ones that work are all 128x128. Do I just need to set all my icons to be that size?

Duralumin answered 10/1 at 19:0 Comment(0)
E
1

Duralumin Best to set them all to the prerequisite size in an image editing app.

Enumerate answered 10/1 at 19:12 Comment(0)
D
0

Enumerate I thought that might be the answer. I'll just do that then, no biggie!

Duralumin answered 10/1 at 19:15 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.