Hi, I have an inventory item I would like to animate. I'm trying to swap out the texture using a coroutine and it sure doesn't seem like the right way to be doing this. Any suggestions?
Inventory items can be animated when made the active cursor, but not their regular graphic. The regular graphic, however, can be a Render Texture in the latest release. A custom script should be fine swap the Main graphic's actual texture - what was wrong with your attempt?
I think the way I'm going about it is kinda tedious (manually animating by setting the texture over and over), I was wondering if there's a way I can attach an animation component to the inv item but I can't seem to access it right. Do render textures support 2d animation?
Ohhh just realized I can use InvokeRepeating and that helps a lot with setting the texture over and over I'd say problem fixed, thank you for the help!
Comments