Simple animated UI Image overlay?
I have a UI Image that sits on top of my UI that I want to use to draw "hit" effects, like from the arcade game shooters. The hit effect is animated, and will change depending on what enemy hits the player.
Here's a shot from the classic game Lethal Enforcers that shows the effect that I mean - a bullet hole on the screen. I want to make it animated, though, which is where the trouble comes in.
I've tried doing this by adding an Animator component the Image, then creating a generic controller, and then replacing the "action" state clip with a different clip at runtime using an AnimatorOverrideController. This works fine, however actually editing and creating clips has become a nightmare with the animation system.
I have to attach a clip to the controller, then put the controller on an object, and only then can I actually edit an AnimationClip. There does not seem to be any way to just edit an animation clip without this process, which makes the workflow rather dreadful for creating a lot of effects.
I've tried everything that I can find online to make this work, to no avail. Is there another way to accomplish this? The gist is, I have some sprite sheets that represent player hit effects, and when the player is hit I want them to draw an animation over the screen one time, and then hide the image again.
Thanks!