Forum rules - please read before posting.

How to animate an inventory item main graphic?

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?

Unity 5.5.2 and AC 1.56b Thank you!

Comments

  • 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?

    Thanks!
  • 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! 
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.