Changing sprite on a game object from a file

In the case where you have a single game object with a sprite that could have different animations in different places I would like to be able to change sprite animation on a game object when it has been added to a collection, in the same way as I can change script properties. The way to do it now is to add a script with a property where I can type what animation I want the object to start with but this has some disadvantages:

  • It’s error prone, since there is no checking wether what I type is actually an animation that exists on that sprite

  • When working with designers who are not coders it adds an unnecessary layer of abstraction and confusion, and breaks the otherwise very WYSIWYGy feeling of the editor

1 Like