Forum rules - please read before posting.

Can you alter the scale of a dragged inventory item sprite

Hopefully the title makes sense.

When i drag an item out from my inventory and it "sticks" to the cursor, is there a way to change the scale at which it's displayed on the cursor? Or do I just need to provide a larger image texture in the first place?

I notice that invetory items graphics are defined by a texture not a sprite, so I can't set the scale on import/conversion to a sprite, like other in game assets.

I'm also wanting to ensure that no filtering is applied to the scaling (to maintain my crisp pixel art).

N.B - This comes about becasue, I've been amazed by just how tiny the file size is of little 32x32 pixel textures are, which when scaled with no filtering, can occupy a lot of screen space for a couple of Kbs. (I'm pretty new to pixel art - and I'm easily excited) - scaling these assets with code rather than just supplying larger textures is no real biggie, I'm just wondering :)

Comments

  • It depends on your Cursor Manager's Cursor rendering setting.

    If it's set to Software, you can control the size below in the "Inventory cursor" panel.

    If it's set to Hardware, it's based on the texture itself - so you'd need to scale up the raw texture file to enlarge it.

    If it's set to Unity UI, it's based on the size of the RectTransform that houses the Raw Image component it gets shown in.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.