Hello,
My games hero is supposed to have several animations and 1 state as idle. The problem is that after any animation played, the heroe
s image goes back to default, but I need it to be the last frame of animation. I tried to set it in runtime like
public Sprite RightBottomImage;
...
spriteRenderer.sprite = RightBottomImage;
But it gave to result.
Any thoughts?
The point is that the animation plays well and there is no code do manipulate with it. The animation was made with the native means of Unity (set of frames) and nothing else (but triggers on the last frame, where the log message is displayed). And after the last frame is played, the object`s image is back to default. The code above was my try to fix this with no success
– Sobel