function Update () {
if (Input.GetKeyDown (“space”)) {
animation.Play(“throw”);
}
}
My animation play normally when it stop playng, it resets to the first frame position ,but if I want to stop that animation on the last frame what I need to do?
function Update () {
if (Input.GetKeyDown (“space”)) {
animation.Play(“throw”);
}
}
My animation play normally when it stop playng, it resets to the first frame position ,but if I want to stop that animation on the last frame what I need to do?
try this
animation.wrapMode = WrapMode.ClampForever;